类 LevelChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.LevelChunk
- 所有已实现的接口:
BiomeManager.NoiseBiomeSource
,BlockGetter
,LightChunk
,StructureAccess
,LevelHeightAccessor
,ICapabilityProvider
,ICapabilityProviderImpl<LevelChunk>
,IForgeBlockGetter
- 直接已知子类:
EmptyLevelChunk
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
static enum
static interface
(专用程序包) class
从类继承的嵌套类/接口 net.minecraft.world.level.chunk.ChunkAccess
ChunkAccess.TicksToSave
-
字段概要
字段修饰符和类型字段说明private final LevelChunkTicks<Block>
private final CapabilityProvider.AsField<LevelChunk>
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> 从类继承的字段 net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, unsaved, upgradeData
-
构造器概要
构造器构造器说明LevelChunk
(ServerLevel pLevel, ProtoChunk pChunk, LevelChunk.PostLoadProcessor pPostLoad) LevelChunk
(Level pLevel, ChunkPos pPos) LevelChunk
(Level pLevel, ChunkPos pPos, UpgradeData pData, LevelChunkTicks<Block> pBlockTicks, LevelChunkTicks<Fluid> pFluidTicks, long pInhabitedTime, LevelChunkSection[] pSections, LevelChunk.PostLoadProcessor pPostLoad, BlendingData pBlendingData) -
方法概要
修饰符和类型方法说明void
addAndRegisterBlockEntity
(BlockEntity pBlockEntity) void
已过时。private <T extends BlockEntity>
voidaddGameEventListener
(T pBlockEntity, ServerLevel pLevel) boolean
boolean
void
private BlockEntity
createBlockEntity
(BlockPos pPos) private <T extends BlockEntity>
TickingBlockEntitycreateTicker
(T pBlockEntity, BlockEntityTicker<T> pTicker) getBlockEntity
(BlockPos pPos) getBlockEntity
(BlockPos pPos, LevelChunk.EntityCreationType pCreationType) getBlockState
(BlockPos pPos) <T> LazyOptional<T>
getCapability
(Capability<T> cap, Direction side) Retrieves the Optional handler for the capability requested on the specific side.getFluidState
(int pX, int pY, int pZ) getFluidState
(BlockPos pPos) getLevel()
getListenerRegistry
(int pSectionY) void
boolean
isEmpty()
private boolean
(专用程序包) boolean
void
private BlockEntity
promotePendingBlockEntity
(BlockPos pPos, CompoundTag pTag) final void
已过时。void
void
void
removeBlockEntity
(BlockPos pPos) private void
private <T extends BlockEntity>
voidremoveGameEventListener
(T pBlockEntity, ServerLevel pLevel) private void
removeGameEventListenerRegistry
(int p_283355_) void
replaceBiomes
(FriendlyByteBuf pBuffer) void
replaceWithPacketData
(FriendlyByteBuf pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pOutputTagConsumer) void
void
void
setBlockEntity
(BlockEntity pBlockEntity) setBlockState
(BlockPos pPos, BlockState pState, boolean pIsMoving) void
setFullStatus
(Supplier<FullChunkStatus> pFullStatus) void
setLoaded
(boolean pLoaded) void
unpackTicks
(long pPos) void
private <T extends BlockEntity>
voidupdateBlockEntityTicker
(T pBlockEntity) final @Nullable CompoundTag
已过时。从类继承的方法 net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, addReferenceForStructure, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAllReferences, getAllStarts, getBelowZeroRetrogen, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getHeight, getHeight, getHeightAccessorForGeneration, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getMinBuildHeight, getNoiseBiome, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isUnsaved, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, setAllReferences, setAllStarts, setBlendingData, setBlockEntityNbt, setHeightmap, setInhabitedTime, setLightCorrect, setStartForStructure, setUnsaved
从类继承的方法 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, getMaxLightLevel, isBlockInLine
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, 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
-
capProvider
-
-
构造器详细资料
-
LevelChunk
-
LevelChunk
public LevelChunk(Level pLevel, ChunkPos pPos, UpgradeData pData, LevelChunkTicks<Block> pBlockTicks, LevelChunkTicks<Fluid> pFluidTicks, long pInhabitedTime, @Nullable LevelChunkSection[] pSections, @Nullable LevelChunk.PostLoadProcessor pPostLoad, @Nullable BlendingData pBlendingData) -
LevelChunk
public LevelChunk(ServerLevel pLevel, ProtoChunk pChunk, @Nullable LevelChunk.PostLoadProcessor pPostLoad)
-
-
方法详细资料
-
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 pPos, LevelChunk.EntityCreationType pCreationType) -
addAndRegisterBlockEntity
-
isInLevel
private boolean isInLevel() -
isTicking
-
setBlockEntity
- 指定者:
setBlockEntity
在类中ChunkAccess
-
getBlockEntityNbtForSaving
- 指定者:
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 pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pOutputTagConsumer) -
replaceBiomes
-
setLoaded
public void setLoaded(boolean pLoaded) -
getLevel
-
getBlockEntities
-
postProcessGeneration
public void postProcessGeneration() -
promotePendingBlockEntity
-
unpackTicks
public void unpackTicks(long pPos) -
registerTickContainerInLevel
-
unregisterTickContainerFromLevel
-
getStatus
- 指定者:
getStatus
在类中ChunkAccess
-
getFullStatus
-
setFullStatus
-
clearAllBlockEntities
public void clearAllBlockEntities() -
registerAllBlockEntitiesAfterLevelLoad
public void registerAllBlockEntitiesAfterLevelLoad() -
addGameEventListener
-
updateBlockEntityTicker
-
createTicker
private <T extends BlockEntity> TickingBlockEntity createTicker(T pBlockEntity, BlockEntityTicker<T> pTicker) -
getCapability
@NotNull public <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) 从接口复制的说明:ICapabilityProvider
Retrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- 指定者:
getCapability
在接口中ICapabilityProvider
- 参数:
cap
- The capability to checkside
- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'- 返回:
- The requested an optional holding the requested capability.
-
areCapsCompatible
- 指定者:
areCapsCompatible
在接口中ICapabilityProviderImpl<LevelChunk>
-
areCapsCompatible
- 指定者:
areCapsCompatible
在接口中ICapabilityProviderImpl<LevelChunk>
-
invalidateCaps
public void invalidateCaps()- 指定者:
invalidateCaps
在接口中ICapabilityProviderImpl<LevelChunk>
-
reviveCaps
public void reviveCaps()- 指定者:
reviveCaps
在接口中ICapabilityProviderImpl<LevelChunk>
-
writeCapsToNBT
已过时。FOR INTERNAL USE ONLYOnly public for use in
ChunkSerializer
. -
readCapsFromNBT
已过时。FOR INTERNAL USE ONLYOnly public for use in
ChunkSerializer
. -
getWorldForge
- 覆盖:
getWorldForge
在类中ChunkAccess
-