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,StructureHolder
public class EmptyChunk extends WorldChunk
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.chunk.WorldChunk
WorldChunk.CreationType -
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)voidaddEntity(Entity entity)booleanareSectionsEmptyBetween(int lowerHeight, int upperHeight)<T extends Entity>
voidcollectEntitiesByClass(Class<? extends T> entityClass, Box box, List<T> result, Predicate<? super T> predicate)Collects a list of entities of some runtime type and appends them to the given list.voidcollectOtherEntities(Entity except, Box box, List<Entity> entityList, Predicate<? super Entity> predicate)BlockEntitygetBlockEntity(BlockPos pos, WorldChunk.CreationType creationType)BlockStategetBlockState(BlockPos pos)FluidStategetFluidState(BlockPos pos)ChunkHolder.LevelTypegetLevelType()LightingProvidergetLightingProvider()intgetLuminance(BlockPos pos)booleanisEmpty()voidmarkDirty()voidremove(Entity entity)voidremove(Entity entity, int section)voidremoveBlockEntity(BlockPos pos)voidsetBlockEntity(BlockPos pos, BlockEntity blockEntity)BlockStatesetBlockState(BlockPos pos, BlockState state, boolean moved)Methods inherited from class net.minecraft.world.chunk.WorldChunk
addPendingBlockEntityTag, addStructureReference, collectEntities, disableTickSchedulers, enableTickSchedulers, getBiomeArray, getBlockEntities, getBlockEntity, getBlockEntityPositions, getBlockEntityTag, getBlockTickScheduler, getEntitySectionArray, getFluidState, getFluidTickScheduler, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesStream, getPackedBlockEntityTag, getPos, getPostProcessingLists, getSectionArray, getStatus, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, getWorld, isLightOn, loadFromPacket, loadToWorld, needsSaving, runPostProcessing, sampleHeightmap, setHeightmap, setInhabitedTime, setLastSaveTime, setLevelTypeProvider, setLightOn, setLoadedToWorld, setShouldSave, setStructureReferences, setStructureStart, setStructureStarts, setUnsavedMethods 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, getHeight, getMaxLightLevel, method_29546, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
getHighestNonEmptySection, getHighestNonEmptySectionYOffset, markBlockForPostProcessing, markBlockForPostProcessing
-
Field Details
-
BIOMES
-
-
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
-
getLightingProvider
- Overrides:
getLightingProviderin classWorldChunk
-
getLuminance
-
addEntity
- Specified by:
addEntityin interfaceChunk- Overrides:
addEntityin classWorldChunk
-
remove
- Overrides:
removein classWorldChunk
-
remove
- Overrides:
removein classWorldChunk
-
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
-
collectOtherEntities
public void collectOtherEntities(@Nullable Entity except, Box box, List<Entity> entityList, Predicate<? super Entity> predicate)- Overrides:
collectOtherEntitiesin classWorldChunk
-
collectEntitiesByClass
public <T extends Entity> void collectEntitiesByClass(Class<? extends T> entityClass, Box box, List<T> result, Predicate<? super T> predicate)Collects a list of entities of some runtime type and appends them to the given list. The runtime class of each collected entity will be the same as or a subclass of the given class.- Overrides:
collectEntitiesByClassin classWorldChunk- Parameters:
entityClass- the class object representing the type collected entities must extendbox- the box in which to collect entitiesresult- a list in which to store the collected entitiespredicate- a predicate which entities must satisfy in order to be collected
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classWorldChunk
-
areSectionsEmptyBetween
public boolean areSectionsEmptyBetween(int lowerHeight, int upperHeight) -
getLevelType
- Overrides:
getLevelTypein classWorldChunk
-