Package net.minecraft.world.level.chunk
Class EmptyLevelChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.LevelChunk
net.minecraft.world.level.chunk.EmptyLevelChunk
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
,BlockGetter
,LightChunk
,StructureAccess
,LevelHeightAccessor
,IAttachmentHolder
,IBlockGetterExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.LevelChunk
LevelChunk.BoundTickingBlockEntity<T extends BlockEntity>, LevelChunk.EntityCreationType, LevelChunk.PostLoadProcessor, LevelChunk.RebindableTickingBlockEntityWrapper, LevelChunk.UnsavedListener
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.ChunkAccess
ChunkAccess.ChunkPathElement, ChunkAccess.PackedTicks
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
FieldsFields inherited from class net.minecraft.world.level.chunk.LevelChunk
level, LOGGER
Fields inherited from class net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, upgradeData
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAndRegisterBlockEntity
(BlockEntity pBlockEntity) getBlockEntity
(BlockPos pPos, LevelChunk.EntityCreationType pCreationType) getBlockState
(BlockPos pPos) getFluidState
(BlockPos pPos) int
getLightEmission
(BlockPos pPos) getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.boolean
isEmpty()
boolean
isYSpaceEmpty
(int pStartY, int pEndY) void
removeBlockEntity
(BlockPos pPos) void
setBlockEntity
(BlockEntity pBlockEntity) setBlockState
(BlockPos pPos, BlockState pState, int pFlags) Methods inherited from class net.minecraft.world.level.chunk.LevelChunk
addEntity, clearAllBlockEntities, getAuxLightManager, getBlockEntities, getBlockEntity, getBlockEntityNbtForSaving, getBlockTicks, getFluidState, getFluidTicks, getLevel, getListenerRegistry, getPersistedStatus, getTicksForSerialization, isTicking, markUnsaved, postProcessGeneration, registerAllBlockEntitiesAfterLevelLoad, registerTickContainerInLevel, replaceBiomes, replaceWithPacketData, runPostLoad, setFullStatus, setLoaded, setUnsavedListener, unpackTicks, unregisterTickContainerFromLevel
Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, addReferenceForStructure, canBeSerialized, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAllReferences, getAllStarts, getAttachmentHolder, getBelowZeroRetrogen, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getData, getExistingDataOrNull, getHeight, getHeight, getHeightAccessorForGeneration, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getMinY, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isUnsaved, isUpgrading, markPosForPostprocessing, problemPath, problemPath, readAttachmentsFromNBT, removeData, setAllReferences, setAllStarts, setBlockEntityNbt, setBlockState, setData, setHeightmap, setInhabitedTime, setLightCorrect, setStartForStructure, tryMarkSaved, writeAttachmentsToNBT
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, isBlockInLine
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getData, getExistingData, getExistingData, getExistingDataOrNull, getExistingDataOrNull, hasAttachments, hasData, hasData, removeData, removeData, setData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getModelData
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
biome
-
-
Constructor Details
-
EmptyLevelChunk
-
-
Method Details
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
- Overrides:
getBlockState
in classLevelChunk
-
setBlockState
- Overrides:
setBlockState
in classLevelChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
- Overrides:
getFluidState
in classLevelChunk
-
getLightEmission
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos pPos, LevelChunk.EntityCreationType pCreationType) - Overrides:
getBlockEntity
in classLevelChunk
-
addAndRegisterBlockEntity
- Overrides:
addAndRegisterBlockEntity
in classLevelChunk
-
setBlockEntity
- Overrides:
setBlockEntity
in classLevelChunk
-
removeBlockEntity
- Overrides:
removeBlockEntity
in classLevelChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classLevelChunk
-
isYSpaceEmpty
public boolean isYSpaceEmpty(int pStartY, int pEndY) - Overrides:
isYSpaceEmpty
in classChunkAccess
-
getFullStatus
- Overrides:
getFullStatus
in classLevelChunk
-
getNoiseBiome
Gets the biome at the given quart positions. Note that the coordinates passed into this method are 1/4 the scale of block coordinates.- Specified by:
getNoiseBiome
in interfaceBiomeManager.NoiseBiomeSource
- Overrides:
getNoiseBiome
in classChunkAccess
-