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 class
EmptyChunk.class_5706
Nested 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 void
addBlockEntity(BlockEntity blockEntity)
boolean
areSectionsEmptyBetween(int lowerHeight, int upperHeight)
BlockEntity
getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType)
BlockState
getBlockState(BlockPos pos)
FluidState
getFluidState(BlockPos pos)
ChunkHolder.LevelType
getLevelType()
int
getLuminance(BlockPos pos)
boolean
isEmpty()
void
markDirty()
void
removeBlockEntity(BlockPos pos)
void
setBlockEntity(BlockEntity blockEntity)
BlockState
setBlockState(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, updateAllBlockEntityTickers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.chunk.Chunk
getHighestNonEmptySection, getHighestNonEmptySectionYOffset, markBlockForPostProcessing, markBlockForPostProcessing
Methods 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:
getBlockState
in interfaceBlockView
- Overrides:
getBlockState
in classWorldChunk
-
setBlockState
- Specified by:
setBlockState
in interfaceChunk
- Overrides:
setBlockState
in classWorldChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
- Overrides:
getFluidState
in classWorldChunk
-
getLuminance
-
getBlockEntity
- Overrides:
getBlockEntity
in classWorldChunk
-
addBlockEntity
- Overrides:
addBlockEntity
in classWorldChunk
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunk
- Overrides:
setBlockEntity
in classWorldChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunk
- Overrides:
removeBlockEntity
in classWorldChunk
-
markDirty
public void markDirty()- Overrides:
markDirty
in classWorldChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classWorldChunk
-
areSectionsEmptyBetween
public boolean areSectionsEmptyBetween(int lowerHeight, int upperHeight) -
getLevelType
- Overrides:
getLevelType
in classWorldChunk
-