类 LevelChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.LevelChunk
- 所有已实现的接口:
BiomeManager.NoiseBiomeSource
,BlockGetter
,LightChunk
,StructureAccess
,LevelHeightAccessor
,IAttachmentHolder
,IBlockGetterExtension
- 直接已知子类:
EmptyLevelChunk
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
static enum
static interface
(专用程序包) static class
static interface
从类继承的嵌套类/接口 net.minecraft.world.level.chunk.ChunkAccess
ChunkAccess.ChunkPathElement, ChunkAccess.PackedTicks
从接口继承的嵌套类/接口 net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
字段概要
字段修饰符和类型字段说明private final LevelChunkAuxiliaryLightManager
private final LevelChunkTicks
<Block> private final LevelChunkTicks
<Fluid> private Supplier
<FullChunkStatus> private final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<GameEventListenerRegistry> (专用程序包) final Level
private boolean
(专用程序包) static final org.slf4j.Logger
private static final TickingBlockEntity
private LevelChunk.PostLoadProcessor
private final Map
<BlockPos, LevelChunk.RebindableTickingBlockEntityWrapper> private LevelChunk.UnsavedListener
从类继承的字段 net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, upgradeData
从接口继承的字段 net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
-
构造器概要
构造器构造器说明LevelChunk
(ServerLevel p_196850_, ProtoChunk p_196851_, LevelChunk.PostLoadProcessor p_196852_) LevelChunk
(Level p_187945_, ChunkPos p_187946_) LevelChunk
(Level p_196854_, ChunkPos p_196855_, UpgradeData p_196856_, LevelChunkTicks<Block> p_196857_, LevelChunkTicks<Fluid> p_196858_, long p_196859_, LevelChunkSection[] p_196860_, LevelChunk.PostLoadProcessor p_196861_, BlendingData p_196862_) -
方法概要
修饰符和类型方法说明void
addAndRegisterBlockEntity
(BlockEntity p_156391_) void
已过时。private <T extends BlockEntity>
voidaddGameEventListener
(T p_223416_, ServerLevel p_223417_) void
private BlockEntity
createBlockEntity
(BlockPos p_62935_) private <T extends BlockEntity>
TickingBlockEntitycreateTicker
(T p_156376_, BlockEntityTicker<T> p_156377_) Get theAuxiliaryLightManager
of the chunk at the givenChunkPos
.getBlockEntity
(BlockPos p_62912_) getBlockEntity
(BlockPos p_62868_, LevelChunk.EntityCreationType p_62869_) getBlockEntityNbtForSaving
(BlockPos p_62932_, HolderLookup.Provider p_323699_) getBlockState
(BlockPos p_62923_) getFluidState
(int p_62815_, int p_62816_, int p_62817_) getFluidState
(BlockPos p_62895_) getLevel()
getListenerRegistry
(int p_251193_) getTicksForSerialization
(long p_361545_) boolean
isEmpty()
private boolean
(专用程序包) boolean
void
void
postProcessGeneration
(ServerLevel p_376244_) private BlockEntity
promotePendingBlockEntity
(BlockPos p_62871_, CompoundTag p_62872_) void
void
registerTickContainerInLevel
(ServerLevel p_187959_) void
removeBlockEntity
(BlockPos p_62919_) private void
removeBlockEntityTicker
(BlockPos p_156413_) private <T extends BlockEntity>
voidremoveGameEventListener
(T p_223413_, ServerLevel p_223414_) private void
removeGameEventListenerRegistry
(int p_283355_) void
replaceBiomes
(FriendlyByteBuf p_275574_) void
replaceWithPacketData
(FriendlyByteBuf p_187972_, Map<Heightmap.Types, long[]> p_404796_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_187974_) void
void
setBlockEntity
(BlockEntity p_156374_) setBlockState
(BlockPos p_62865_, BlockState p_62866_, int p_393859_) void
setFullStatus
(Supplier<FullChunkStatus> p_62880_) void
setLoaded
(boolean p_62914_) void
setUnsavedListener
(LevelChunk.UnsavedListener p_381704_) void
unpackTicks
(long p_187986_) void
unregisterTickContainerFromLevel
(ServerLevel p_187980_) private <T extends BlockEntity>
voidupdateBlockEntityTicker
(T p_156407_) 从类继承的方法 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, getNoiseBiome, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isUnsaved, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, problemPath, problemPath, readAttachmentsFromNBT, removeData, setAllReferences, setAllStarts, setBlockEntityNbt, setBlockState, setData, setHeightmap, setInhabitedTime, setLightCorrect, setStartForStructure, tryMarkSaved, writeAttachmentsToNBT
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getData, getExistingData, getExistingData, getExistingDataOrNull, getExistingDataOrNull, hasAttachments, hasData, hasData, removeData, removeData, setData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getModelData
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
NULL_TICKER
-
tickersInLevel
-
loaded
private boolean loaded -
level
-
fullStatus
-
postLoad
-
gameEventListenerRegistrySections
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventListenerRegistry> gameEventListenerRegistrySections -
blockTicks
-
fluidTicks
-
unsavedListener
-
auxLightManager
-
-
构造器详细资料
-
LevelChunk
-
LevelChunk
public LevelChunk(Level p_196854_, ChunkPos p_196855_, UpgradeData p_196856_, LevelChunkTicks<Block> p_196857_, LevelChunkTicks<Fluid> p_196858_, long p_196859_, @Nullable LevelChunkSection[] p_196860_, @Nullable LevelChunk.PostLoadProcessor p_196861_, @Nullable BlendingData p_196862_) -
LevelChunk
public LevelChunk(ServerLevel p_196850_, ProtoChunk p_196851_, @Nullable LevelChunk.PostLoadProcessor p_196852_)
-
-
方法详细资料
-
setUnsavedListener
-
markUnsaved
public void markUnsaved()- 覆盖:
markUnsaved
在类中ChunkAccess
-
getBlockTicks
- 指定者:
getBlockTicks
在类中ChunkAccess
-
getFluidTicks
- 指定者:
getFluidTicks
在类中ChunkAccess
-
getTicksForSerialization
- 指定者:
getTicksForSerialization
在类中ChunkAccess
-
getListenerRegistry
- 覆盖:
getListenerRegistry
在类中ChunkAccess
-
getBlockState
- 指定者:
getBlockState
在接口中BlockGetter
-
getFluidState
- 指定者:
getFluidState
在接口中BlockGetter
-
getFluidState
-
setBlockState
- 指定者:
setBlockState
在类中ChunkAccess
-
addEntity
已过时。- 指定者:
addEntity
在类中ChunkAccess
-
createBlockEntity
-
getBlockEntity
- 指定者:
getBlockEntity
在接口中BlockGetter
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos p_62868_, LevelChunk.EntityCreationType p_62869_) -
addAndRegisterBlockEntity
-
isInLevel
private boolean isInLevel() -
isTicking
-
setBlockEntity
- 指定者:
setBlockEntity
在类中ChunkAccess
-
getBlockEntityNbtForSaving
@Nullable public CompoundTag getBlockEntityNbtForSaving(BlockPos p_62932_, HolderLookup.Provider p_323699_) - 指定者:
getBlockEntityNbtForSaving
在类中ChunkAccess
-
removeBlockEntity
- 指定者:
removeBlockEntity
在类中ChunkAccess
-
removeGameEventListener
-
removeGameEventListenerRegistry
private void removeGameEventListenerRegistry(int p_283355_) -
removeBlockEntityTicker
-
runPostLoad
public void runPostLoad() -
isEmpty
public boolean isEmpty() -
replaceWithPacketData
public void replaceWithPacketData(FriendlyByteBuf p_187972_, Map<Heightmap.Types, long[]> p_404796_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_187974_) -
replaceBiomes
-
setLoaded
public void setLoaded(boolean p_62914_) -
getLevel
- 覆盖:
getLevel
在类中ChunkAccess
-
getBlockEntities
-
postProcessGeneration
-
promotePendingBlockEntity
-
unpackTicks
public void unpackTicks(long p_187986_) -
registerTickContainerInLevel
-
unregisterTickContainerFromLevel
-
getPersistedStatus
- 指定者:
getPersistedStatus
在类中ChunkAccess
-
getFullStatus
-
setFullStatus
-
clearAllBlockEntities
public void clearAllBlockEntities() -
registerAllBlockEntitiesAfterLevelLoad
public void registerAllBlockEntitiesAfterLevelLoad() -
addGameEventListener
-
updateBlockEntityTicker
-
createTicker
private <T extends BlockEntity> TickingBlockEntity createTicker(T p_156376_, BlockEntityTicker<T> p_156377_) -
getAuxLightManager
从接口复制的说明:IBlockGetterExtension
Get theAuxiliaryLightManager
of the chunk at the givenChunkPos
.The light manager must be used to hold light values controlled by dynamic data from
BlockEntity
s to ensure access to the light data is thread-safe and the data is available during chunk load from disk whereBlockEntity
s are not yet added to the chunk.- 指定者:
getAuxLightManager
在接口中IBlockGetterExtension
- 参数:
pos
- The position of the chunk from which the light manager is requested- 返回:
- the light manager or
null
if the chunk is not accessible (ChunkSource.getChunkForLighting(int, int)
returnednull
) or the given implementation ofBlockGetter
does not implement this method
-