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
-
Constructor Summary
Constructors Constructor Description EmptyChunk(World world, ChunkPos chunkPos) -
Method Summary
Modifier and Type Method Description voidaddBlockEntity(BlockEntity blockEntity)voidaddEntity(Entity entity)BlockEntitygetBlockEntity(BlockPos pos, WorldChunk.CreationType creationType)BlockStategetBlockState(BlockPos pos)<T extends Entity>
voidgetEntities(Class<? extends T> entityClass, Box box, List<T> result, Predicate<? super T> predicate)voidgetEntities(Entity except, Box box, List<Entity> entityList, Predicate<? super Entity> predicate)FluidStategetFluidState(BlockPos pos)ChunkHolder.LevelTypegetLevelType()LightingProvidergetLightingProvider()intgetLuminance(BlockPos pos)booleanisEmpty()voidmarkDirty()booleanmethod_12228(int int2, int int3)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, disableTickSchedulers, enableTickSchedulers, getBiomeArray, getBlockEntities, getBlockEntity, getBlockEntityPositions, getBlockEntityTagAt, getBlockTickScheduler, getEntities, getEntitySectionArray, getFluidState, getFluidTickScheduler, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesStream, getPos, getPostProcessingLists, getSectionArray, getStatus, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, getWorld, isLightOn, loadFromPacket, loadToWorld, method_20598, 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
getHeight, getMaxLightLevel, method_29546, rayTrace, rayTraceBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
getHighestNonEmptySection, getHighestNonEmptySectionYOffset, markBlockForPostProcessing, markBlockForPostProcessing
-
Field Details
-
Constructor Details
-
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
-
getEntities
public void getEntities(@Nullable Entity except, Box box, List<Entity> entityList, Predicate<? super Entity> predicate)- Overrides:
getEntitiesin classWorldChunk
-
getEntities
public <T extends Entity> void getEntities(Class<? extends T> entityClass, Box box, List<T> result, Predicate<? super T> predicate)- Overrides:
getEntitiesin classWorldChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classWorldChunk
-
method_12228
public boolean method_12228(int int2, int int3) -
getLevelType
- Overrides:
getLevelTypein classWorldChunk
-