Class StructureCheck
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructureCheck
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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
-
Constructor Summary
ConstructorDescriptionStructureCheck
(ChunkScanAccess p_226712_, RegistryAccess p_226713_, StructureTemplateManager p_226714_, ResourceKey<Level> p_226715_, ChunkGenerator p_226716_, RandomState p_226717_, LevelHeightAccessor p_226718_, BiomeSource p_226719_, long p_226720_, com.mojang.datafixers.DataFixer p_226721_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canCreateStructure
(ChunkPos p_226756_, Structure p_226757_) checkStart
(ChunkPos p_226730_, Structure p_226731_, StructurePlacement p_327807_, boolean p_226732_) 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> p_197299_) void
incrementReference
(ChunkPos p_226723_, Structure p_226724_) private it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> loadStructures
(CompoundTag p_197312_) 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 p_226734_, Structure p_226735_, boolean p_226736_, long p_226737_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_STRUCTURE
private static final int NO_STRUCTURE- See Also:
-
storageAccess
-
registryAccess
-
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
-
-
Constructor Details
-
StructureCheck
public StructureCheck(ChunkScanAccess p_226712_, RegistryAccess p_226713_, StructureTemplateManager p_226714_, ResourceKey<Level> p_226715_, ChunkGenerator p_226716_, RandomState p_226717_, LevelHeightAccessor p_226718_, BiomeSource p_226719_, long p_226720_, com.mojang.datafixers.DataFixer p_226721_)
-
-
Method Details
-
checkStart
public StructureCheckResult checkStart(ChunkPos p_226730_, Structure p_226731_, StructurePlacement p_327807_, boolean p_226732_) -
canCreateStructure
-
tryLoadFromStorage
@Nullable private StructureCheckResult tryLoadFromStorage(ChunkPos p_226734_, Structure p_226735_, boolean p_226736_, long p_226737_) -
loadStructures
@Nullable private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> loadStructures(CompoundTag p_197312_) -
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
-