Package net.minecraft.world
Class StructureLocator
java.lang.Object
net.minecraft.world.StructureLocator
- Mappings:
Namespace Name official edfintermediary net/minecraft/class_6832named net/minecraft/world/StructureLocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiomeSourceprivate final Long2ObjectMap<Object2IntMap<Structure>> private final ChunkGeneratorprivate final NbtScannableprivate final com.mojang.datafixers.DataFixerprivate final Map<Structure, Long2BooleanMap> private static final Loggerprivate final NoiseConfigprivate final DynamicRegistryManagerprivate final longprivate static final intprivate final StructureTemplateManagerprivate final HeightLimitViewprivate final RegistryKey<World> -
Constructor Summary
ConstructorsConstructorDescriptionStructureLocator(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 TypeMethodDescriptionprivate voidcache(long pos, Object2IntMap<Structure> referencesByStructure) voidcache(ChunkPos pos, Map<Structure, StructureStart> structureStarts) private @Nullable Object2IntMap<Structure> private static Object2IntMap<Structure> private StructurePresencegetStructurePresence(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) private @Nullable StructurePresencegetStructurePresence(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) getStructurePresence(ChunkPos pos, Structure type, StructurePlacement placement, boolean skipReferencedStructures) voidincrementReferences(ChunkPos pos, Structure structure) private booleanisGenerationPossible(ChunkPos pos, Structure structure) Returns whetherstructureis able to generate inpos.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLedf;a:Lorg/slf4j/Logger;intermediary field_36225Lnet/minecraft/class_6832;field_36225:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/world/StructureLocator;LOGGER:Lorg/slf4j/Logger;
-
START_NOT_PRESENT_REFERENCE
private static final int START_NOT_PRESENT_REFERENCE- See Also:
- Mappings:
Namespace Name Mixin selector official bLedf;b:Iintermediary field_36226Lnet/minecraft/class_6832;field_36226:Inamed START_NOT_PRESENT_REFERENCELnet/minecraft/world/StructureLocator;START_NOT_PRESENT_REFERENCE:I
-
chunkIoWorker
- Mappings:
Namespace Name Mixin selector official cLedf;c:Ldpx;intermediary field_36227Lnet/minecraft/class_6832;field_36227:Lnet/minecraft/class_6830;named chunkIoWorkerLnet/minecraft/world/StructureLocator;chunkIoWorker:Lnet/minecraft/world/storage/NbtScannable;
-
registryManager
- Mappings:
Namespace Name Mixin selector official dLedf;d:Liz;intermediary field_36228Lnet/minecraft/class_6832;field_36228:Lnet/minecraft/class_5455;named registryManagerLnet/minecraft/world/StructureLocator;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
-
structureTemplateManager
- Mappings:
Namespace Name Mixin selector official eLedf;e:Lehf;intermediary field_36230Lnet/minecraft/class_6832;field_36230:Lnet/minecraft/class_3485;named structureTemplateManagerLnet/minecraft/world/StructureLocator;structureTemplateManager:Lnet/minecraft/structure/StructureTemplateManager;
-
worldKey
- Mappings:
Namespace Name Mixin selector official fLedf;f:Lajg;intermediary field_36231Lnet/minecraft/class_6832;field_36231:Lnet/minecraft/class_5321;named worldKeyLnet/minecraft/world/StructureLocator;worldKey:Lnet/minecraft/registry/RegistryKey;
-
chunkGenerator
- Mappings:
Namespace Name Mixin selector official gLedf;g:Ldoy;intermediary field_36232Lnet/minecraft/class_6832;field_36232:Lnet/minecraft/class_2794;named chunkGeneratorLnet/minecraft/world/StructureLocator;chunkGenerator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector official hLedf;h:Ldtc;intermediary field_37750Lnet/minecraft/class_6832;field_37750:Lnet/minecraft/class_7138;named noiseConfigLnet/minecraft/world/StructureLocator;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;
-
world
- Mappings:
Namespace Name Mixin selector official iLedf;i:Lcxd;intermediary field_36233Lnet/minecraft/class_6832;field_36233:Lnet/minecraft/class_5539;named worldLnet/minecraft/world/StructureLocator;world:Lnet/minecraft/world/HeightLimitView;
-
biomeSource
- Mappings:
Namespace Name Mixin selector official jLedf;j:Lcye;intermediary field_36234Lnet/minecraft/class_6832;field_36234:Lnet/minecraft/class_1966;named biomeSourceLnet/minecraft/world/StructureLocator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official kLedf;k:Jintermediary field_36235Lnet/minecraft/class_6832;field_36235:Jnamed seedLnet/minecraft/world/StructureLocator;seed:J
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official lLedf;l:Lcom/mojang/datafixers/DataFixer;intermediary field_36236Lnet/minecraft/class_6832;field_36236:Lcom/mojang/datafixers/DataFixer;named dataFixerLnet/minecraft/world/StructureLocator;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
cachedStructuresByChunkPos
- Mappings:
Namespace Name Mixin selector official mLedf;m:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_36237Lnet/minecraft/class_6832;field_36237:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;named cachedStructuresByChunkPosLnet/minecraft/world/StructureLocator;cachedStructuresByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
generationPossibilityByStructure
- Mappings:
Namespace Name Mixin selector official nLedf;n:Ljava/util/Map;intermediary field_36238Lnet/minecraft/class_6832;field_36238:Ljava/util/Map;named generationPossibilityByStructureLnet/minecraft/world/StructureLocator;generationPossibilityByStructure:Ljava/util/Map;
-
-
Constructor Details
-
StructureLocator
public StructureLocator(NbtScannable chunkIoWorker, DynamicRegistryManager registryManager, StructureTemplateManager structureTemplateManager, RegistryKey<World> worldKey, ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, HeightLimitView world, BiomeSource biomeSource, long seed, com.mojang.datafixers.DataFixer dataFixer) - Mappings:
Namespace Name Mixin selector official <init>Ledf;<init>(Ldpx;Liz;Lehf;Lajg;Ldoy;Ldtc;Lcxd;Lcye;JLcom/mojang/datafixers/DataFixer;)Vintermediary <init>Lnet/minecraft/class_6832;<init>(Lnet/minecraft/class_6830;Lnet/minecraft/class_5455;Lnet/minecraft/class_3485;Lnet/minecraft/class_5321;Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;Lnet/minecraft/class_5539;Lnet/minecraft/class_1966;JLcom/mojang/datafixers/DataFixer;)Vnamed <init>Lnet/minecraft/world/StructureLocator;<init>(Lnet/minecraft/world/storage/NbtScannable;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/biome/source/BiomeSource;JLcom/mojang/datafixers/DataFixer;)V
-
-
Method Details
-
getStructurePresence
public StructurePresence getStructurePresence(ChunkPos pos, Structure type, StructurePlacement placement, boolean skipReferencedStructures) - Mappings:
Namespace Name Mixin selector official aLedf;a(Lcwi;Lede;Leeb;Z)Ledg;intermediary method_39831Lnet/minecraft/class_6832;method_39831(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;Lnet/minecraft/class_6874;Z)Lnet/minecraft/class_6833;named getStructurePresenceLnet/minecraft/world/StructureLocator;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;Z)Lnet/minecraft/world/StructurePresence;
-
isGenerationPossible
Returns whetherstructureis able to generate inpos.This method only performs simple checks like biomes.
- Returns:
- whether
structureis able to generate inpos - Mappings:
Namespace Name Mixin selector official bLedf;b(Lcwi;Lede;)Zintermediary method_39829Lnet/minecraft/class_6832;method_39829(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;)Znamed isGenerationPossibleLnet/minecraft/world/StructureLocator;isGenerationPossible(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;)Z
-
getStructurePresence
@Nullable private @Nullable StructurePresence getStructurePresence(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) - Mappings:
Namespace Name Mixin selector official aLedf;a(Lcwi;Lede;ZJ)Ledg;intermediary method_39832Lnet/minecraft/class_6832;method_39832(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;ZJ)Lnet/minecraft/class_6833;named getStructurePresenceLnet/minecraft/world/StructureLocator;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;ZJ)Lnet/minecraft/world/StructurePresence;
-
collectStructuresAndReferences
@Nullable private @Nullable Object2IntMap<Structure> collectStructuresAndReferences(NbtCompound nbt) - Mappings:
Namespace Name Mixin selector official aLedf;a(Lta;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary method_39842Lnet/minecraft/class_6832;method_39842(Lnet/minecraft/class_2487;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;named collectStructuresAndReferencesLnet/minecraft/world/StructureLocator;collectStructuresAndReferences(Lnet/minecraft/nbt/NbtCompound;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
createMapIfEmpty
- Mappings:
Namespace Name Mixin selector official aLedf;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary method_39838Lnet/minecraft/class_6832;method_39838(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;named createMapIfEmptyLnet/minecraft/world/StructureLocator;createMapIfEmpty(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
getStructurePresence
private StructurePresence getStructurePresence(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) - Mappings:
Namespace Name Mixin selector official aLedf;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lede;Z)Ledg;intermediary method_39840Lnet/minecraft/class_6832;method_39840(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/class_3195;Z)Lnet/minecraft/class_6833;named getStructurePresenceLnet/minecraft/world/StructureLocator;getStructurePresence(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/world/gen/structure/Structure;Z)Lnet/minecraft/world/StructurePresence;
-
cache
- Mappings:
Namespace Name Mixin selector official aLedf;a(Lcwi;Ljava/util/Map;)Vintermediary method_39833Lnet/minecraft/class_6832;method_39833(Lnet/minecraft/class_1923;Ljava/util/Map;)Vnamed cacheLnet/minecraft/world/StructureLocator;cache(Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;)V
-
cache
- Mappings:
Namespace Name Mixin selector official aLedf;a(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)Vintermediary method_39828Lnet/minecraft/class_6832;method_39828(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)Vnamed cacheLnet/minecraft/world/StructureLocator;cache(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
-
incrementReferences
- Mappings:
Namespace Name Mixin selector official aLedf;a(Lcwi;Lede;)Vintermediary method_39830Lnet/minecraft/class_6832;method_39830(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;)Vnamed incrementReferencesLnet/minecraft/world/StructureLocator;incrementReferences(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;)V
-