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:
DebugValueSource, BiomeManager.NoiseBiomeSource, BlockGetter, LightChunk, StructureAccess, LevelHeightAccessor, IAttachmentHolder, IBlockGetterExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class LevelChunk
LevelChunk.EntityCreationType, LevelChunk.PostLoadProcessor, LevelChunk.UnsavedListenerNested classes/interfaces inherited from class ChunkAccess
ChunkAccess.PackedTicksNested classes/interfaces inherited from interface BlockGetter
BlockGetter.BlockStepVisitorNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T> -
Field Summary
FieldsFields inherited from class ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, upgradeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAndRegisterBlockEntity(BlockEntity blockEntity) @Nullable BlockEntitygetBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) getBlockState(BlockPos pos) getFluidState(BlockPos pos) intgetLightEmission(BlockPos pos) getNoiseBiome(int quartX, int quartY, int quartZ) Gets the biome at the given quart positions.booleanisEmpty()booleanisYSpaceEmpty(int yStartInclusive, int yEndInclusive) voidvoidsetBlockEntity(BlockEntity blockEntity) @Nullable BlockStatesetBlockState(BlockPos pos, BlockState state, int flags) Methods inherited from class LevelChunk
addEntity, clearAllBlockEntities, getAuxLightManager, getBlockEntities, getBlockEntity, getBlockEntityNbtForSaving, getBlockTicks, getFluidState, getFluidTicks, getLevel, getListenerRegistry, getPersistedStatus, getTicksForSerialization, markUnsaved, postProcessGeneration, registerAllBlockEntitiesAfterLevelLoad, registerDebugValues, registerTickContainerInLevel, replaceBiomes, replaceWithPacketData, runPostLoad, setFullStatus, setLoaded, setUnsavedListener, syncData, unpackTicks, unregisterTickContainerFromLevelMethods inherited from class 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, writeAttachmentsToNBTMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, isBlockInLineMethods inherited from interface IAttachmentHolder
getData, getData, getExistingData, getExistingData, getExistingDataOrNull, getExistingDataOrNull, hasAttachments, hasData, hasData, removeData, removeData, setData, setData, syncDataMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getModelDataMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
biome
-
-
Constructor Details
-
EmptyLevelChunk
-
-
Method Details
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockGetter- Overrides:
getBlockStatein classLevelChunk
-
setBlockState
- Overrides:
setBlockStatein classLevelChunk
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockGetter- Overrides:
getFluidStatein classLevelChunk
-
getLightEmission
-
getBlockEntity
public @Nullable BlockEntity getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) - Overrides:
getBlockEntityin classLevelChunk
-
addAndRegisterBlockEntity
- Overrides:
addAndRegisterBlockEntityin classLevelChunk
-
setBlockEntity
- Overrides:
setBlockEntityin classLevelChunk
-
removeBlockEntity
- Overrides:
removeBlockEntityin classLevelChunk
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classLevelChunk
-
isYSpaceEmpty
public boolean isYSpaceEmpty(int yStartInclusive, int yEndInclusive) - Overrides:
isYSpaceEmptyin classChunkAccess
-
getFullStatus
- Overrides:
getFullStatusin classLevelChunk
-
getNoiseBiome
Description copied from interface:BiomeManager.NoiseBiomeSourceGets 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:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource- Overrides:
getNoiseBiomein classChunkAccess
-