Package net.minecraft.world.chunk
Class EmptyChunk
java.lang.Object
net.minecraft.world.chunk.WorldChunk
net.minecraft.world.chunk.EmptyChunk
- All Implemented Interfaces:
BlockView,Chunk,HeightLimitView,StructureHolder
public class EmptyChunk extends WorldChunk
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classEmptyChunk.class_5706Nested classes/interfaces inherited from class net.minecraft.world.chunk.WorldChunk
WorldChunk.CreationType, WorldChunk.DirectBlockEntityTickInvoker<T extends BlockEntity>, WorldChunk.EmptyBlockEntityTickInvoker, WorldChunk.WrappedBlockEntityTickInvoker -
Field Summary
Fields inherited from class net.minecraft.world.chunk.WorldChunk
EMPTY_SECTION -
Constructor Summary
Constructors Constructor Description EmptyChunk(World world, ChunkPos pos) -
Method Summary
Modifier and Type Method Description voidaddBlockEntity(BlockEntity blockEntity)booleanareSectionsEmptyBetween(int lowerHeight, int upperHeight)BlockEntitygetBlockEntity(BlockPos pos, WorldChunk.CreationType creationType)BlockStategetBlockState(BlockPos pos)FluidStategetFluidState(BlockPos pos)ChunkHolder.LevelTypegetLevelType()intgetLuminance(BlockPos pos)booleanisEmpty()voidmarkDirty()voidremoveBlockEntity(BlockPos pos)voidsetBlockEntity(BlockEntity blockEntity)BlockStatesetBlockState(BlockPos pos, BlockState state, boolean moved)Methods inherited from class net.minecraft.world.chunk.WorldChunk
addEntity, addPendingBlockEntityTag, addStructureReference, disableTickSchedulers, enableTickSchedulers, getBiomeArray, getBlockEntities, getBlockEntity, getBlockEntityPositions, getBlockEntityTag, getBlockTickScheduler, getBottomSectionLimit, getFluidState, getFluidTickScheduler, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesStream, getPackedBlockEntityTag, getPos, getPostProcessingLists, getSectionArray, getSectionCount, getStatus, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, getWorld, isLightOn, loadFromPacket, loadToWorld, method_32914, needsSaving, removeAllBlockEntities, runPostProcessing, sampleHeightmap, setHeightmap, setInhabitedTime, setLevelTypeProvider, setLightOn, setLoadedToWorld, setShouldSave, setStructureReferences, setStructureStart, setStructureStarts, updateAllBlockEntityTickersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
getHighestNonEmptySection, getHighestNonEmptySectionYOffset, markBlockForPostProcessing, markBlockForPostProcessingMethods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Constructor Details
-
EmptyChunk
-
-
Method Details
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockView- Overrides:
getBlockStatein classWorldChunk
-
setBlockState
- Specified by:
setBlockStatein interfaceChunk- Overrides:
setBlockStatein classWorldChunk
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView- Overrides:
getFluidStatein classWorldChunk
-
getLuminance
-
getBlockEntity
- Overrides:
getBlockEntityin classWorldChunk
-
addBlockEntity
- Overrides:
addBlockEntityin classWorldChunk
-
setBlockEntity
- Specified by:
setBlockEntityin interfaceChunk- Overrides:
setBlockEntityin classWorldChunk
-
removeBlockEntity
- Specified by:
removeBlockEntityin interfaceChunk- Overrides:
removeBlockEntityin classWorldChunk
-
markDirty
public void markDirty()- Overrides:
markDirtyin classWorldChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classWorldChunk
-
areSectionsEmptyBetween
public boolean areSectionsEmptyBetween(int lowerHeight, int upperHeight) -
getLevelType
- Overrides:
getLevelTypein classWorldChunk
-