Package net.minecraft.world.level.chunk
Class EmptyLevelChunk
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<LevelChunk>
net.minecraft.world.level.chunk.LevelChunk
net.minecraft.world.level.chunk.EmptyLevelChunk
- All Implemented Interfaces:
BlockGetter
,ChunkAccess
,FeatureAccess
,LevelHeightAccessor
,ICapabilityProvider
,IForgeLevelChunk
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.LevelChunk
LevelChunk.BoundTickingBlockEntity<T extends BlockEntity>, LevelChunk.EntityCreationType, LevelChunk.RebindableTickingBlockEntityWrapper
-
Field Summary
Fields inherited from class net.minecraft.world.level.chunk.LevelChunk
EMPTY_SECTION, level, LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAndRegisterBlockEntity(BlockEntity p_156346_)
getBlockEntity(BlockPos p_62609_, LevelChunk.EntityCreationType p_62610_)
getBlockState(BlockPos p_62625_)
getFluidState(BlockPos p_62621_)
int
getLightEmission(BlockPos p_62628_)
boolean
isEmpty()
boolean
isYSpaceEmpty(int p_62587_, int p_62588_)
void
void
removeBlockEntity(BlockPos p_62623_)
void
setBlockEntity(BlockEntity p_156344_)
setBlockState(BlockPos p_62605_, BlockState p_62606_, boolean p_62607_)
Methods inherited from class net.minecraft.world.level.chunk.LevelChunk
addEntity, addReferenceForFeature, getAllReferences, getAllStarts, getBiomes, getBlockEntities, getBlockEntitiesPos, getBlockEntity, getBlockEntityNbt, getBlockEntityNbtForSaving, getBlockTicks, getEventDispatcher, getFluidState, getHeighestPosition, getHeight, getHeight, getHeightmaps, getInhabitedTime, getLevel, getLights, getLiquidTicks, getMinBuildHeight, getOrCreateHeightmapUnprimed, getPos, getPostProcessing, getReferencesForFeature, getSections, getStartForFeature, getStatus, getUpgradeData, getWorldForge, invalidateAllBlockEntities, isLightCorrect, isTicking, isUnsaved, packTicks, postProcessGeneration, readCapsFromNBT, registerAllBlockEntitiesAfterLevelLoad, replaceWithPacketData, runPostLoad, setAllReferences, setAllStarts, setBlockEntityNbt, setFullStatus, setInhabitedTime, setLightCorrect, setLoaded, setStartForFeature, setUnsaved, unpackTicks, writeCapsToNBT
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
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.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, getHighestSection, getHighestSectionPosition, getOrCreateSection, markPosForPostprocessing, setHeightmap
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Constructor Details
-
EmptyLevelChunk
-
-
Method Details
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
- Overrides:
getBlockState
in classLevelChunk
-
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_62605_, BlockState p_62606_, boolean p_62607_)- Specified by:
setBlockState
in interfaceChunkAccess
- Overrides:
setBlockState
in classLevelChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
- Overrides:
getFluidState
in classLevelChunk
-
getLightEmission
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos p_62609_, LevelChunk.EntityCreationType p_62610_)- Overrides:
getBlockEntity
in classLevelChunk
-
addAndRegisterBlockEntity
- Overrides:
addAndRegisterBlockEntity
in classLevelChunk
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunkAccess
- Overrides:
setBlockEntity
in classLevelChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunkAccess
- Overrides:
removeBlockEntity
in classLevelChunk
-
markUnsaved
public void markUnsaved()- Overrides:
markUnsaved
in classLevelChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classLevelChunk
-
isYSpaceEmpty
public boolean isYSpaceEmpty(int p_62587_, int p_62588_) -
getFullStatus
- Overrides:
getFullStatus
in classLevelChunk
-