类 StructureCheck
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructureCheck
-
字段概要
字段修饰符和类型字段说明private final BiomeSource
private final ChunkGenerator
private final ResourceKey<Level>
private final com.mojang.datafixers.DataFixer
private final LevelHeightAccessor
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>>
private static final org.slf4j.Logger
private static final int
private final RandomState
private final RegistryAccess
private final long
private final ChunkScanAccess
private final StructureTemplateManager
-
构造器概要
构造器构造器说明StructureCheck
(ChunkScanAccess pStorageAccess, RegistryAccess pRegistryAccess, StructureTemplateManager pStructureTemplateManager, ResourceKey<Level> pDimension, ChunkGenerator pChunkGenerator, RandomState pRandomState, LevelHeightAccessor pHeightAccessor, BiomeSource pBiomeSource, long pSeed, com.mojang.datafixers.DataFixer pFixerUpper) -
方法概要
修饰符和类型方法说明private boolean
canCreateStructure
(ChunkPos pChunkPos, Structure pStructure) checkStart
(ChunkPos pChunkPos, Structure pStructure, boolean pSkipKnownStructures) private StructureCheckResult
checkStructureInfo
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_226752_, Structure p_226753_, boolean p_226754_) private static it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>
deduplicateEmptyMap
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> pMap) void
incrementReference
(ChunkPos pPos, Structure pStructure) private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>
loadStructures
(CompoundTag pTag) void
onStructureLoad
(ChunkPos p_197283_, Map<Structure, StructureStart> p_197284_) private void
storeFullResults
(long p_197264_, it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_197265_) private StructureCheckResult
tryLoadFromStorage
(ChunkPos pChunkPos, Structure pStructure, boolean p_226736_, long p_226737_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_STRUCTURE
private static final int NO_STRUCTURE- 另请参阅:
-
storageAccess
-
registryAccess
-
biomes
-
structureConfigs
-
structureTemplateManager
-
dimension
-
chunkGenerator
-
randomState
-
heightAccessor
-
biomeSource
-
seed
private final long seed -
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
loadedChunks
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>> loadedChunks -
featureChecks
-
-
构造器详细资料
-
StructureCheck
public StructureCheck(ChunkScanAccess pStorageAccess, RegistryAccess pRegistryAccess, StructureTemplateManager pStructureTemplateManager, ResourceKey<Level> pDimension, ChunkGenerator pChunkGenerator, RandomState pRandomState, LevelHeightAccessor pHeightAccessor, BiomeSource pBiomeSource, long pSeed, com.mojang.datafixers.DataFixer pFixerUpper)
-
-
方法详细资料
-
checkStart
public StructureCheckResult checkStart(ChunkPos pChunkPos, Structure pStructure, boolean pSkipKnownStructures) -
canCreateStructure
-
tryLoadFromStorage
@Nullable private StructureCheckResult tryLoadFromStorage(ChunkPos pChunkPos, Structure pStructure, boolean p_226736_, long p_226737_) -
loadStructures
@Nullable private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> loadStructures(CompoundTag pTag) -
deduplicateEmptyMap
-
checkStructureInfo
private StructureCheckResult checkStructureInfo(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_226752_, Structure p_226753_, boolean p_226754_) -
onStructureLoad
-
storeFullResults
private void storeFullResults(long p_197264_, it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_197265_) -
incrementReference
-