类 ChunkAccess
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
- 所有已实现的接口:
BiomeManager.NoiseBiomeSource
,BlockGetter
,LightChunk
,StructureAccess
,LevelHeightAccessor
,IForgeBlockGetter
- 直接已知子类:
LevelChunk
,ProtoChunk
public abstract class ChunkAccess
extends Object
implements BlockGetter, BiomeManager.NoiseBiomeSource, LightChunk, StructureAccess
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected BlendingData
protected final Map<BlockPos,
BlockEntity> private BiomeGenerationSettings
已过时。protected final ChunkPos
private static final it.unimi.dsi.fastutil.longs.LongSet
protected final Map<Heightmap.Types,
Heightmap> private long
private boolean
protected final LevelHeightAccessor
private static final org.slf4j.Logger
static final int
protected NoiseChunk
protected final Map<BlockPos,
CompoundTag> protected final it.unimi.dsi.fastutil.shorts.ShortList[]
protected final LevelChunkSection[]
protected ChunkSkyLightSources
private final Map<Structure,
StructureStart> protected boolean
protected final UpgradeData
-
构造器概要
构造器构造器说明ChunkAccess
(ChunkPos pChunkPos, UpgradeData pUpgradeData, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, long pInhabitedTime, LevelChunkSection[] pSections, BlendingData pBlendingData) -
方法概要
修饰符和类型方法说明abstract void
void
addPackedPostProcess
(short pPackedPosition, int pIndex) void
addReferenceForStructure
(Structure pStructure, long pReference) carverBiome
(Supplier<BiomeGenerationSettings> pCaverBiomeSettingsSupplier) 已过时。void
fillBiomesFromNoise
(BiomeResolver pResolver, Climate.Sampler pSampler) final void
findBlockLightSources
(BiConsumer<BlockPos, BlockState> pOutput) void
findBlocks
(BiPredicate<BlockState, BlockPos> pPredicate, BiConsumer<BlockPos, BlockState> pOutput) void
findBlocks
(Predicate<BlockState> pPredicate, BiConsumer<BlockPos, BlockState> pOutput) getBlockEntityNbt
(BlockPos pPos) abstract CompoundTag
abstract TickContainerAccess<Block>
abstract TickContainerAccess<Fluid>
int
int
getHeight
(Heightmap.Types pType, int pX, int pZ) int
int
已过时, 待删除: 此 API 元素将从以后的版本中删除。long
getListenerRegistry
(int pSectionY) int
getNoiseBiome
(int pX, int pY, int pZ) getOrCreateNoiseChunk
(Function<ChunkAccess, NoiseChunk> pNoiseChunkCreator) static it.unimi.dsi.fastutil.shorts.ShortList
getOrCreateOffsetList
(it.unimi.dsi.fastutil.shorts.ShortList[] pPackedPositions, int pIndex) getPos()
it.unimi.dsi.fastutil.shorts.ShortList[]
it.unimi.dsi.fastutil.longs.LongSet
getReferencesForStructure
(Structure pStructure) getSection
(int pIndex) getStartForStructure
(Structure pStructure) abstract ChunkStatus
abstract ChunkAccess.TicksToSave
boolean
boolean
void
incrementInhabitedTime
(long pAmount) void
boolean
boolean
boolean
boolean
boolean
isYSpaceEmpty
(int pStartY, int pEndY) void
abstract void
removeBlockEntity
(BlockPos pPos) private static void
replaceMissingSections
(Registry<Biome> pBiomeRegistry, LevelChunkSection[] pSections) void
setAllReferences
(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> pStructureReferencesMap) void
setAllStarts
(Map<Structure, StructureStart> pStructureStarts) void
setBlendingData
(BlendingData pBlendingData) abstract void
setBlockEntity
(BlockEntity pBlockEntity) void
setBlockEntityNbt
(CompoundTag pTag) abstract BlockState
setBlockState
(BlockPos pPos, BlockState pState, boolean pIsMoving) void
setHeightmap
(Heightmap.Types pType, long[] pData) void
setInhabitedTime
(long pInhabitedTime) void
setLightCorrect
(boolean pLightCorrect) void
setStartForStructure
(Structure pStructure, StructureStart pStructureStart) void
setUnsaved
(boolean pUnsaved) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
字段详细资料
-
NO_FILLED_SECTION
public static final int NO_FILLED_SECTION- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY_REFERENCE_SET
private static final it.unimi.dsi.fastutil.longs.LongSet EMPTY_REFERENCE_SET -
postProcessing
protected final it.unimi.dsi.fastutil.shorts.ShortList[] postProcessing -
unsaved
protected volatile boolean unsaved -
isLightCorrect
private volatile boolean isLightCorrect -
chunkPos
-
inhabitedTime
private long inhabitedTime -
carverBiomeSettings
已过时。 -
noiseChunk
-
upgradeData
-
blendingData
-
heightmaps
-
skyLightSources
-
structureStarts
-
structuresRefences
-
pendingBlockEntities
-
blockEntities
-
levelHeightAccessor
-
sections
-
-
构造器详细资料
-
ChunkAccess
public ChunkAccess(ChunkPos pChunkPos, UpgradeData pUpgradeData, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, long pInhabitedTime, @Nullable LevelChunkSection[] pSections, @Nullable BlendingData pBlendingData)
-
-
方法详细资料
-
replaceMissingSections
private static void replaceMissingSections(Registry<Biome> pBiomeRegistry, LevelChunkSection[] pSections) -
getListenerRegistry
-
setBlockState
@Nullable public abstract BlockState setBlockState(BlockPos pPos, BlockState pState, boolean pIsMoving) -
setBlockEntity
-
addEntity
-
getHighestFilledSectionIndex
public int getHighestFilledSectionIndex() -
getHighestSectionPosition
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getBlockEntitiesPos
-
getSections
-
getSection
-
getHeightmaps
-
setHeightmap
-
getOrCreateHeightmapUnprimed
-
hasPrimedHeightmap
-
getHeight
-
getPos
-
getStartForStructure
- 指定者:
getStartForStructure
在接口中StructureAccess
-
setStartForStructure
- 指定者:
setStartForStructure
在接口中StructureAccess
-
getAllStarts
-
setAllStarts
-
getReferencesForStructure
- 指定者:
getReferencesForStructure
在接口中StructureAccess
-
addReferenceForStructure
- 指定者:
addReferenceForStructure
在接口中StructureAccess
-
getAllReferences
- 指定者:
getAllReferences
在接口中StructureAccess
-
setAllReferences
public void setAllReferences(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> pStructureReferencesMap) - 指定者:
setAllReferences
在接口中StructureAccess
-
isYSpaceEmpty
public boolean isYSpaceEmpty(int pStartY, int pEndY) -
setUnsaved
public void setUnsaved(boolean pUnsaved) -
isUnsaved
public boolean isUnsaved() -
getStatus
-
getHighestGeneratedStatus
-
removeBlockEntity
-
markPosForPostprocessing
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing() -
addPackedPostProcess
public void addPackedPostProcess(short pPackedPosition, int pIndex) -
setBlockEntityNbt
-
getBlockEntityNbt
-
getBlockEntityNbtForSaving
-
findBlockLightSources
- 指定者:
findBlockLightSources
在接口中LightChunk
-
findBlocks
-
findBlocks
public void findBlocks(BiPredicate<BlockState, BlockPos> pPredicate, BiConsumer<BlockPos, BlockState> pOutput) -
getBlockTicks
-
getFluidTicks
-
getTicksForSerialization
-
getUpgradeData
-
isOldNoiseGeneration
public boolean isOldNoiseGeneration() -
getBlendingData
-
setBlendingData
-
getInhabitedTime
public long getInhabitedTime() -
incrementInhabitedTime
public void incrementInhabitedTime(long pAmount) -
setInhabitedTime
public void setInhabitedTime(long pInhabitedTime) -
getOrCreateOffsetList
public static it.unimi.dsi.fastutil.shorts.ShortList getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] pPackedPositions, int pIndex) -
isLightCorrect
public boolean isLightCorrect() -
setLightCorrect
public void setLightCorrect(boolean pLightCorrect) -
getMinBuildHeight
public int getMinBuildHeight()- 指定者:
getMinBuildHeight
在接口中LevelHeightAccessor
-
getHeight
public int getHeight()- 指定者:
getHeight
在接口中LevelHeightAccessor
-
getOrCreateNoiseChunk
-
carverBiome
@Deprecated public BiomeGenerationSettings carverBiome(Supplier<BiomeGenerationSettings> pCaverBiomeSettingsSupplier) 已过时。 -
getNoiseBiome
- 指定者:
getNoiseBiome
在接口中BiomeManager.NoiseBiomeSource
-
fillBiomesFromNoise
-
hasAnyStructureReferences
public boolean hasAnyStructureReferences() -
getBelowZeroRetrogen
-
isUpgrading
public boolean isUpgrading() -
getHeightAccessorForGeneration
-
initializeLightSources
public void initializeLightSources() -
getSkyLightSources
- 指定者:
getSkyLightSources
在接口中LightChunk
-
getWorldForge
-