public abstract class MixinChunk extends Object implements org.spongepowered.api.world.Chunk, IMixinChunk
Modifier and Type | Field and Description |
---|---|
Map<Integer,Integer> |
trackedIntBlockPositions |
Map<Short,Integer> |
trackedShortBlockPositions |
int |
xPosition |
int |
zPosition |
Constructor and Description |
---|
MixinChunk() |
Modifier and Type | Method and Description |
---|---|
void |
addTrackedBlockPosition(net.minecraft.block.Block block,
net.minecraft.util.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.util.BlockPos |
blockPosFromInt(int serialized)
Create a BlockPos from a serialized chunk position
|
net.minecraft.util.BlockPos |
blockPosFromShort(short serialized)
Create a BlockPos from a serialized chunk position
|
int |
blockPosToInt(net.minecraft.util.BlockPos pos)
Serialize this BlockPos into an int value
|
short |
blockPosToShort(net.minecraft.util.BlockPos pos)
Serialize this BlockPos into a short value
|
boolean |
containsBiome(int x,
int z) |
boolean |
containsBlock(int x,
int y,
int z) |
abstract void |
generateSkylightMap() |
abstract net.minecraft.world.biome.BiomeGenBase |
getBiome(net.minecraft.util.BlockPos pos,
net.minecraft.world.biome.WorldChunkManager chunkManager) |
org.spongepowered.api.world.biome.BiomeType |
getBiome(int x,
int z) |
abstract byte[] |
getBiomeArray() |
com.flowpowered.math.vector.Vector2i |
getBiomeMax() |
com.flowpowered.math.vector.Vector2i |
getBiomeMin() |
com.flowpowered.math.vector.Vector2i |
getBiomeSize() |
org.spongepowered.api.block.BlockState |
getBlock(int x,
int y,
int z) |
com.flowpowered.math.vector.Vector3i |
getBlockMax() |
com.flowpowered.math.vector.Vector3i |
getBlockMin() |
Optional<org.spongepowered.api.entity.living.player.User> |
getBlockPosOwner(net.minecraft.util.BlockPos pos) |
com.flowpowered.math.vector.Vector3i |
getBlockSize() |
abstract net.minecraft.block.state.IBlockState |
getBlockState(net.minecraft.util.BlockPos pos) |
org.spongepowered.api.block.BlockType |
getBlockType(int x,
int y,
int z) |
org.spongepowered.api.event.cause.Cause |
getCurrentPopulateCause() |
org.spongepowered.api.world.extent.Extent |
getExtentView(org.spongepowered.api.util.DiscreteTransform3 transform) |
org.spongepowered.api.world.extent.Extent |
getExtentView(com.flowpowered.math.vector.Vector3i newMin,
com.flowpowered.math.vector.Vector3i newMax) |
abstract int |
getLightFor(net.minecraft.world.EnumSkyBlock p_177413_1_,
net.minecraft.util.BlockPos pos) |
com.flowpowered.math.vector.Vector3i |
getPosition() |
org.spongepowered.api.world.extent.Extent |
getRelativeExtentView() |
abstract net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.util.BlockPos pos,
net.minecraft.world.chunk.Chunk.EnumCreateEntityType p_177424_2_) |
Map<Integer,Integer> |
getTrackedIntPlayerPositions() |
Map<Short,Integer> |
getTrackedShortPlayerPositions() |
org.spongepowered.api.world.World |
getWorld() |
boolean |
isLoaded() |
boolean |
isPopulated() |
boolean |
loadChunk(boolean generate) |
void |
onChunkLoadInject(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
onChunkUnloadInject(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
onConstructed(net.minecraft.world.World world,
int x,
int z,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
onPopulateChunkPre(net.minecraft.world.chunk.IChunkProvider chunkProviderServer,
net.minecraft.world.chunk.IChunkProvider chunkProvider,
int x,
int z) |
protected abstract void |
propagateSkylightOcclusion(int x,
int z) |
protected abstract void |
relightBlock(int x,
int y,
int z) |
void |
removeTrackedPlayerPosition(net.minecraft.util.BlockPos pos) |
void |
setBiome(int x,
int z,
org.spongepowered.api.world.biome.BiomeType biome) |
abstract void |
setBiomeArray(byte[] biomeArray) |
void |
setBlock(int x,
int y,
int z,
org.spongepowered.api.block.BlockState block) |
net.minecraft.block.state.IBlockState |
setBlockState(net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
setBlockState(net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState newState,
net.minecraft.block.state.IBlockState currentState,
org.spongepowered.api.block.BlockSnapshot newBlockSnapshot) |
int |
setNibble(int num,
int data,
int which,
int bitsToReplace)
Modifies bits in an integer.
|
void |
setTrackedIntPlayerPositions(Map<Integer,Integer> trackedPositions) |
void |
setTrackedShortPlayerPositions(Map<Short,Integer> trackedPositions) |
abstract net.minecraft.block.Block |
shadow$getBlock(int x,
int y,
int z) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation, getLocation, getLocation, getLocation, unloadChunk
addScheduledUpdate, addScheduledUpdate, createSnapshot, createSnapshot, getScheduledUpdates, getScheduledUpdates, removeScheduledUpdate, removeScheduledUpdate, restoreSnapshot, restoreSnapshot, restoreSnapshot, setBlock, setBlock, setBlockType, setBlockType
createEntity, createEntity, createEntity, createEntity, getEntities, getEntities, restoreSnapshot, spawnEntity
getTileEntities, getTileEntities, getTileEntity, getTileEntity
getBlockView, getBlockView, getRelativeBlockView, setBlock, setBlockType, setBlockType
containsBlock, getBlock, getBlockCopy, getBlockCopy, getBlockType, getImmutableBlockCopy, getUnmodifiableBlockView
getBiomeView, getBiomeView, getRelativeBiomeView, setBiome
containsBiome, getBiome, getBiomeCopy, getBiomeCopy, getImmutableBiomeCopy, getUnmodifiableBiomeView
copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, get, get, get, get, getKeys, getKeys, getManipulators, getManipulators, getOrCreate, getOrCreate, getOrElse, getOrElse, getOrNull, getOrNull, getValue, getValue, getValues, getValues, offer, offer, offer, offer, offer, offer, offer, offer, offer, offer, offer, remove, remove, remove, remove, setRawData, setRawData, supports, supports, supports, supports, supports, supports, supports, supports, transform, transform, undo, undo, validateRawData, validateRawData
getProperties, getProperties, getProperty, getProperty, getProperty, getProperty
getTrackedPlayerUniqueId
public abstract net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.util.BlockPos pos, net.minecraft.world.chunk.Chunk.EnumCreateEntityType p_177424_2_)
public abstract void generateSkylightMap()
protected abstract void relightBlock(int x, int y, int z)
public abstract int getLightFor(net.minecraft.world.EnumSkyBlock p_177413_1_, net.minecraft.util.BlockPos pos)
protected abstract void propagateSkylightOcclusion(int x, int z)
public abstract net.minecraft.block.state.IBlockState getBlockState(net.minecraft.util.BlockPos pos)
public abstract net.minecraft.world.biome.BiomeGenBase getBiome(net.minecraft.util.BlockPos pos, net.minecraft.world.biome.WorldChunkManager chunkManager)
public abstract byte[] getBiomeArray()
public abstract void setBiomeArray(byte[] biomeArray)
public abstract net.minecraft.block.Block shadow$getBlock(int x, int y, int z)
public void onConstructed(net.minecraft.world.World world, int x, int z, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public void onChunkLoadInject(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public void onChunkUnloadInject(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public com.flowpowered.math.vector.Vector3i getPosition()
getPosition
in interface org.spongepowered.api.world.Chunk
public boolean isLoaded()
isLoaded
in interface org.spongepowered.api.world.extent.Extent
public boolean isPopulated()
isPopulated
in interface org.spongepowered.api.world.Chunk
public boolean loadChunk(boolean generate)
loadChunk
in interface org.spongepowered.api.world.Chunk
public org.spongepowered.api.world.World getWorld()
getWorld
in interface org.spongepowered.api.world.Chunk
public org.spongepowered.api.world.biome.BiomeType getBiome(int x, int z)
getBiome
in interface org.spongepowered.api.world.extent.BiomeArea
public void setBiome(int x, int z, org.spongepowered.api.world.biome.BiomeType biome)
setBiome
in interface org.spongepowered.api.world.extent.MutableBiomeArea
public org.spongepowered.api.block.BlockState getBlock(int x, int y, int z)
getBlock
in interface org.spongepowered.api.world.extent.BlockVolume
public void setBlock(int x, int y, int z, org.spongepowered.api.block.BlockState block)
setBlock
in interface org.spongepowered.api.world.extent.MutableBlockVolume
public org.spongepowered.api.block.BlockType getBlockType(int x, int y, int z)
getBlockType
in interface org.spongepowered.api.world.extent.BlockVolume
public com.flowpowered.math.vector.Vector2i getBiomeMin()
getBiomeMin
in interface org.spongepowered.api.world.extent.BiomeArea
public com.flowpowered.math.vector.Vector2i getBiomeMax()
getBiomeMax
in interface org.spongepowered.api.world.extent.BiomeArea
public com.flowpowered.math.vector.Vector2i getBiomeSize()
getBiomeSize
in interface org.spongepowered.api.world.extent.BiomeArea
public com.flowpowered.math.vector.Vector3i getBlockMin()
getBlockMin
in interface org.spongepowered.api.world.extent.BlockVolume
public com.flowpowered.math.vector.Vector3i getBlockMax()
getBlockMax
in interface org.spongepowered.api.world.extent.BlockVolume
public com.flowpowered.math.vector.Vector3i getBlockSize()
getBlockSize
in interface org.spongepowered.api.world.extent.BlockVolume
public boolean containsBiome(int x, int z)
containsBiome
in interface org.spongepowered.api.world.extent.BiomeArea
public boolean containsBlock(int x, int y, int z)
containsBlock
in interface org.spongepowered.api.world.extent.BlockVolume
public org.spongepowered.api.world.extent.Extent getExtentView(com.flowpowered.math.vector.Vector3i newMin, com.flowpowered.math.vector.Vector3i newMax)
getExtentView
in interface org.spongepowered.api.world.extent.Extent
public org.spongepowered.api.world.extent.Extent getExtentView(org.spongepowered.api.util.DiscreteTransform3 transform)
getExtentView
in interface org.spongepowered.api.world.extent.Extent
public org.spongepowered.api.world.extent.Extent getRelativeExtentView()
getRelativeExtentView
in interface org.spongepowered.api.world.extent.Extent
public org.spongepowered.api.event.cause.Cause getCurrentPopulateCause()
getCurrentPopulateCause
in interface IMixinChunk
public void onPopulateChunkPre(net.minecraft.world.chunk.IChunkProvider chunkProviderServer, net.minecraft.world.chunk.IChunkProvider chunkProvider, int x, int z)
public net.minecraft.block.state.IBlockState setBlockState(net.minecraft.util.BlockPos pos, net.minecraft.block.state.IBlockState state)
public net.minecraft.block.state.IBlockState setBlockState(net.minecraft.util.BlockPos pos, net.minecraft.block.state.IBlockState newState, net.minecraft.block.state.IBlockState currentState, org.spongepowered.api.block.BlockSnapshot newBlockSnapshot)
setBlockState
in interface IMixinChunk
public void addTrackedBlockPosition(net.minecraft.block.Block block, net.minecraft.util.BlockPos pos, net.minecraft.entity.player.EntityPlayer player)
addTrackedBlockPosition
in interface IMixinChunk
public Map<Integer,Integer> getTrackedIntPlayerPositions()
getTrackedIntPlayerPositions
in interface IMixinChunk
public Map<Short,Integer> getTrackedShortPlayerPositions()
getTrackedShortPlayerPositions
in interface IMixinChunk
public Optional<org.spongepowered.api.entity.living.player.User> getBlockPosOwner(net.minecraft.util.BlockPos pos)
getBlockPosOwner
in interface IMixinChunk
public void setTrackedIntPlayerPositions(Map<Integer,Integer> trackedPositions)
setTrackedIntPlayerPositions
in interface IMixinChunk
public void setTrackedShortPlayerPositions(Map<Short,Integer> trackedPositions)
setTrackedShortPlayerPositions
in interface IMixinChunk
public void removeTrackedPlayerPosition(net.minecraft.util.BlockPos pos)
removeTrackedPlayerPosition
in interface IMixinChunk
public int setNibble(int num, int data, int which, int bitsToReplace)
num
- Integer to modifydata
- Bits of data to addwhich
- Index of nibble to start atbitsToReplace
- The number of bits to replace starting from nibble indexpublic short blockPosToShort(net.minecraft.util.BlockPos pos)
public net.minecraft.util.BlockPos blockPosFromShort(short serialized)
public int blockPosToInt(net.minecraft.util.BlockPos pos)
public net.minecraft.util.BlockPos blockPosFromInt(int serialized)