net.minecraft.world

public class StructureLocator

net.minecraft.world.level.levelgen.structure.StructureCheck
net.minecraft.class_6832
net.minecraft.world.StructureLocator

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_36225
LOGGER
private static final int
NO_STRUCTURE
field_36226
START_NOT_PRESENT_REFERENCE
private final NbtScannable
storageAccess
field_36227
chunkIoWorker
private final DynamicRegistryManager
registryAccess
field_36228
registryManager
private final StructureTemplateManager
structureTemplateManager
field_36230
structureTemplateManager
private final RegistryKey<World>
dimension
field_36231
worldKey
private final ChunkGenerator
chunkGenerator
field_36232
chunkGenerator
private final NoiseConfig
randomState
field_37750
noiseConfig
private final HeightLimitView
heightAccessor
field_36233
world
private final BiomeSource
biomeSource
field_36234
biomeSource
private final long
seed
field_36235
seed
private final com.mojang.datafixers.DataFixer
fixerUpper
field_36236
dataFixer
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>>
loadedChunks
field_36237
cachedStructuresByChunkPos
private final Map<Structure, it.unimi.dsi.fastutil.longs.Long2BooleanMap>
featureChecks
field_36238
generationPossibilityByStructure

Constructor summary

ModifierConstructor
public (NbtScannable chunkIoWorker, DynamicRegistryManager registryManager, StructureTemplateManager structureTemplateManager, RegistryKey<World> worldKey, ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, HeightLimitView world, BiomeSource biomeSource, long seed, com.mojang.datafixers.DataFixer dataFixer)

Method summary

Modifier and TypeMethod
public StructurePresence
checkStart(ChunkPos pos, Structure structure, StructurePlacement placement, boolean requireUnreferenced)
method_39831(class_1923 arg0, class_3195 arg1, class_1_1143 arg2, boolean arg3)
getStructurePresence(ChunkPos pos, Structure type, StructurePlacement arg2, boolean skipReferencedStructures)
private boolean
canCreateStructure(ChunkPos pos, Structure structure)
method_39829(class_1923 arg0, class_3195 arg1)
isGenerationPossible(ChunkPos pos, Structure structure)
private StructurePresence
tryLoadFromStorage(ChunkPos pos, Structure structure, boolean requireUnreferenced, long posKey)
method_39832(class_1923 arg0, class_3195 arg1, boolean arg2, long arg3)
getStructurePresence(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong)
private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>
loadStructures(CompoundTag chunkTag)
method_39842(class_2487 arg0)
collectStructuresAndReferences(NbtCompound nbt)
private static it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>
deduplicateEmptyMap(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> map)
method_39838(it.unimi.dsi.fastutil.objects.Object2IntMap<class_3195> arg0)
createMapIfEmpty(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> map)
private StructurePresence
checkStructureInfo(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> cachedResult, Structure structure, boolean requireUnreferenced)
method_39840(it.unimi.dsi.fastutil.objects.Object2IntMap<class_3195> arg0, class_3195 arg1, boolean arg2)
getStructurePresence(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures)
public void
onStructureLoad(ChunkPos pos, Map<Structure, StructureStart> starts)
method_39833(class_1923 arg0, Map<class_3195, class_3449> arg1)
cache(ChunkPos pos, Map<Structure, StructureStart> structureStarts)
private void
storeFullResults(long posKey, it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> starts)
method_39828(long arg0, it.unimi.dsi.fastutil.objects.Object2IntMap<class_3195> arg1)
cache(long pos, it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> referencesByStructure)
public void
incrementReference(ChunkPos chunkPos, Structure structure)
method_39830(class_1923 arg0, class_3195 arg1)
incrementReferences(ChunkPos pos, Structure structure)
private static it.unimi.dsi.fastutil.objects.Object2IntMap
lambda$incrementReference$0(Structure arg0, Long arg1, it.unimi.dsi.fastutil.objects.Object2IntMap arg2)
method_39837(class_3195 arg0, Long arg1, it.unimi.dsi.fastutil.objects.Object2IntMap arg2)
method_39837(Structure arg0, Long posx, it.unimi.dsi.fastutil.objects.Object2IntMap referencesByStructure)
private static Integer
lambda$incrementReference$1(Structure arg0, Integer arg1)
method_39836(class_3195 arg0, Integer arg1)
method_39836(Structure feature, Integer references)
private static void
lambda$storeFullResults$0(long arg0, it.unimi.dsi.fastutil.longs.Long2BooleanMap arg1)
method_39827(long arg0, it.unimi.dsi.fastutil.longs.Long2BooleanMap arg1)
method_39827(long arg0, it.unimi.dsi.fastutil.longs.Long2BooleanMap generationPossibilityByChunkPos)
private static void
lambda$onStructureLoad$0(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Structure arg1, StructureStart arg2)
method_39839(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, class_3195 arg1, class_3449 arg2)
method_39839(it.unimi.dsi.fastutil.objects.Object2IntMap structure, Structure start, StructureStart arg2)
private static void
lambda$loadStructures$1(Registry arg0, it.unimi.dsi.fastutil.objects.Object2IntMap arg1, String arg2, Tag arg3)
method_68332(class_2378 arg0, it.unimi.dsi.fastutil.objects.Object2IntMap arg1, String arg2, class_2520 arg3)
method_68332(Registry arg0, it.unimi.dsi.fastutil.objects.Object2IntMap arg1, String arg2, NbtElement arg3)
private static void
lambda$loadStructures$2(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Structure arg1, CompoundTag arg2)
method_68331(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, class_3195 arg1, class_2487 arg2)
method_68331(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Structure arg1, NbtCompound arg2)
private static Optional
lambda$loadStructures$0(CompoundTag arg0)
method_68333(class_2487 arg0)
method_68333(NbtCompound arg0)
private boolean
lambda$checkStart$1(ChunkPos arg0, Structure arg1, long arg2)
method_41143(class_1923 arg0, class_3195 arg1, long arg2)
method_41143(ChunkPos arg0, Structure arg1, long chunkPos)
private static it.unimi.dsi.fastutil.longs.Long2BooleanMap
lambda$checkStart$0(Structure arg0)
method_39834(class_3195 arg0)
method_39834(Structure structure2)