@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class BlankCube extends Cube
Blocks.AIRCube.ICubeLightTrackingInfoICube.ForcedLoadReasonNULL_STORAGE, updateLCG| Constructor and Description |
|---|
BlankCube(net.minecraft.world.chunk.Chunk column) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBlockPos(net.minecraft.util.math.BlockPos blockPos)
Check whether a given global block position is contained in this cube
|
net.minecraft.block.state.IBlockState |
getBlockState(net.minecraft.util.math.BlockPos pos)
Retrieve the block state at the specified location
|
net.minecraft.block.state.IBlockState |
getBlockState(int blockX,
int localOrBlockY,
int blockZ)
Retrieve the block state at the specified location
|
int |
getLightFor(net.minecraft.world.EnumSkyBlock lightType,
net.minecraft.util.math.BlockPos pos)
Retrieve the raw light level at the specified location
|
net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.chunk.Chunk.EnumCreateEntityType creationType)
Retrieve the tile entity at the specified location
|
boolean |
isEmpty()
Check if there are any non-air blocks in this cube
|
void |
markForRenderUpdate() |
void |
markSaved()
Mark this cube as saved to disk
|
boolean |
needsSaving()
Check if any modifications happened to this cube since it was loaded from disk
|
void |
onLoad()
Finish the cube loading process
|
void |
onUnload()
Mark this cube as no longer part of this world
|
void |
setLightFor(net.minecraft.world.EnumSkyBlock lightType,
net.minecraft.util.math.BlockPos pos,
int light)
Set the raw light level at the specified location
|
addEntity, addTileEntity, checkAndUpdateTick, getBiome, getBiomeArray, getCachedLightFor, getCapabilities, getCapability, getColumn, getCoords, getCubeLightData, getEntityContainer, getEntitySet, getForceLoadStatus, getStorage, getTickets, getTileEntityMap, getWorld, getX, getY, getZ, hasBeenTicked, hasCapability, hasLightUpdates, isCubeLoaded, isFullyPopulated, isInitialLightingDone, isPopulated, isSurfaceTracked, localAddressToBlockPos, markDirty, removeEntity, setBiome, setBiomeArray, setBlockState, setClientCube, setCubeLoaded, setFullyPopulated, setInitialLightingDone, setPopulated, setStorage, setStorageFromSave, setSurfaceTracked, tickCubeCommon, tickCubeServer, trackSurfacepublic boolean isEmpty()
ICubepublic boolean containsBlockPos(net.minecraft.util.math.BlockPos blockPos)
ICubecontainsBlockPos in interface ICubecontainsBlockPos in class CubeblockPos - the position of the blocktrue if the position is within this cube, false otherwisepublic net.minecraft.block.state.IBlockState getBlockState(net.minecraft.util.math.BlockPos pos)
ICubegetBlockState in interface ICubegetBlockState in class Cubepos - target locationICube.getBlockState(int, int, int)public net.minecraft.block.state.IBlockState getBlockState(int blockX,
int localOrBlockY,
int blockZ)
ICubegetBlockState in interface ICubegetBlockState in class CubeblockX - block x positionlocalOrBlockY - block or local y positionblockZ - block z positionICube.getBlockState(BlockPos)@Nullable
public net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.chunk.Chunk.EnumCreateEntityType creationType)
ICubegetTileEntity in interface ICubegetTileEntity in class Cubepos - target locationcreationType - how fast the tile entity is needednull if there is no entity and
createType was not Chunk.EnumCreateEntityType#IMMEDIATEpublic void onLoad()
Cubepublic void onUnload()
Cubepublic boolean needsSaving()
ICubeneedsSaving in interface ICubeneedsSaving in class Cubetrue if this cube should be written back to diskpublic void markSaved()
Cubepublic int getLightFor(net.minecraft.world.EnumSkyBlock lightType,
net.minecraft.util.math.BlockPos pos)
ICubegetLightFor in interface ICubegetLightFor in class CubelightType - The type of light (sky or block light)pos - The position at which light should be checkedpublic void setLightFor(net.minecraft.world.EnumSkyBlock lightType,
net.minecraft.util.math.BlockPos pos,
int light)
ICubesetLightFor in interface ICubesetLightFor in class CubelightType - The type of light (sky or block light)pos - The position at which light should be updatedlight - the light levelpublic void markForRenderUpdate()
markForRenderUpdate in class Cube