Package net.minecraft.world
Class StructureLocator
java.lang.Object
net.minecraft.world.StructureLocator
- Mappings:
Namespace Name named net/minecraft/world/StructureLocator
intermediary net/minecraft/class_6832
official ein
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeSource
private final Long2ObjectMap
<Object2IntMap<Structure>> private final ChunkGenerator
private final NbtScannable
private final com.mojang.datafixers.DataFixer
private final Map
<Structure, Long2BooleanMap> private static final Logger
private final NoiseConfig
private final DynamicRegistryManager
private final long
private static final int
private final StructureTemplateManager
private final HeightLimitView
private final RegistryKey
<World> -
Constructor Summary
ConstructorDescriptionStructureLocator
(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 void
cache
(long pos, Object2IntMap<Structure> referencesByStructure) void
cache
(ChunkPos pos, Map<Structure, StructureStart> structureStarts) private @Nullable Object2IntMap
<Structure> private static Object2IntMap
<Structure> private StructurePresence
getStructurePresence
(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) private @Nullable StructurePresence
getStructurePresence
(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) getStructurePresence
(ChunkPos pos, Structure type, StructurePlacement placement, boolean skipReferencedStructures) void
incrementReferences
(ChunkPos pos, Structure structure) private boolean
isGenerationPossible
(ChunkPos pos, Structure structure) Returns whetherstructure
is able to generate inpos
.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/StructureLocator;LOGGER:Lorg/slf4j/Logger;
intermediary field_36225
Lnet/minecraft/class_6832;field_36225:Lorg/slf4j/Logger;
official a
Lein;a:Lorg/slf4j/Logger;
-
START_NOT_PRESENT_REFERENCE
private static final int START_NOT_PRESENT_REFERENCE- See Also:
- Mappings:
Namespace Name Mixin selector named START_NOT_PRESENT_REFERENCE
Lnet/minecraft/world/StructureLocator;START_NOT_PRESENT_REFERENCE:I
intermediary field_36226
Lnet/minecraft/class_6832;field_36226:I
official b
Lein;b:I
-
chunkIoWorker
- Mappings:
Namespace Name Mixin selector named chunkIoWorker
Lnet/minecraft/world/StructureLocator;chunkIoWorker:Lnet/minecraft/world/storage/NbtScannable;
intermediary field_36227
Lnet/minecraft/class_6832;field_36227:Lnet/minecraft/class_6830;
official c
Lein;c:Ldvf;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/world/StructureLocator;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
intermediary field_36228
Lnet/minecraft/class_6832;field_36228:Lnet/minecraft/class_5455;
official d
Lein;d:Ljw;
-
structureTemplateManager
- Mappings:
Namespace Name Mixin selector named structureTemplateManager
Lnet/minecraft/world/StructureLocator;structureTemplateManager:Lnet/minecraft/structure/StructureTemplateManager;
intermediary field_36230
Lnet/minecraft/class_6832;field_36230:Lnet/minecraft/class_3485;
official e
Lein;e:Lemn;
-
worldKey
- Mappings:
Namespace Name Mixin selector named worldKey
Lnet/minecraft/world/StructureLocator;worldKey:Lnet/minecraft/registry/RegistryKey;
intermediary field_36231
Lnet/minecraft/class_6832;field_36231:Lnet/minecraft/class_5321;
official f
Lein;f:Lale;
-
chunkGenerator
- Mappings:
Namespace Name Mixin selector named chunkGenerator
Lnet/minecraft/world/StructureLocator;chunkGenerator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
intermediary field_36232
Lnet/minecraft/class_6832;field_36232:Lnet/minecraft/class_2794;
official g
Lein;g:Ldub;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector named noiseConfig
Lnet/minecraft/world/StructureLocator;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;
intermediary field_37750
Lnet/minecraft/class_6832;field_37750:Lnet/minecraft/class_7138;
official h
Lein;h:Ldyk;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/world/StructureLocator;world:Lnet/minecraft/world/HeightLimitView;
intermediary field_36233
Lnet/minecraft/class_6832;field_36233:Lnet/minecraft/class_5539;
official i
Lein;i:Ldcc;
-
biomeSource
- Mappings:
Namespace Name Mixin selector named biomeSource
Lnet/minecraft/world/StructureLocator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
intermediary field_36234
Lnet/minecraft/class_6832;field_36234:Lnet/minecraft/class_1966;
official j
Lein;j:Lddd;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector named seed
Lnet/minecraft/world/StructureLocator;seed:J
intermediary field_36235
Lnet/minecraft/class_6832;field_36235:J
official k
Lein;k:J
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector named dataFixer
Lnet/minecraft/world/StructureLocator;dataFixer:Lcom/mojang/datafixers/DataFixer;
intermediary field_36236
Lnet/minecraft/class_6832;field_36236:Lcom/mojang/datafixers/DataFixer;
official l
Lein;l:Lcom/mojang/datafixers/DataFixer;
-
cachedStructuresByChunkPos
- Mappings:
Namespace Name Mixin selector named cachedStructuresByChunkPos
Lnet/minecraft/world/StructureLocator;cachedStructuresByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_36237
Lnet/minecraft/class_6832;field_36237:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
official m
Lein;m:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
generationPossibilityByStructure
- Mappings:
Namespace Name Mixin selector named generationPossibilityByStructure
Lnet/minecraft/world/StructureLocator;generationPossibilityByStructure:Ljava/util/Map;
intermediary field_36238
Lnet/minecraft/class_6832;field_36238:Ljava/util/Map;
official n
Lein;n: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 named <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
intermediary <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;)V
official <init>
Lein;<init>(Ldvf;Ljw;Lemn;Lale;Ldub;Ldyk;Ldcc;Lddd;JLcom/mojang/datafixers/DataFixer;)V
-
-
Method Details
-
getStructurePresence
public StructurePresence getStructurePresence(ChunkPos pos, Structure type, StructurePlacement placement, boolean skipReferencedStructures) - Mappings:
Namespace Name Mixin selector named getStructurePresence
Lnet/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;
intermediary method_39831
Lnet/minecraft/class_6832;method_39831(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;Lnet/minecraft/class_6874;Z)Lnet/minecraft/class_6833;
official a
Lein;a(Ldbh;Leim;Lejj;Z)Leio;
-
isGenerationPossible
Returns whetherstructure
is able to generate inpos
.This method only performs simple checks like biomes.
- Returns:
- whether
structure
is able to generate inpos
- Mappings:
Namespace Name Mixin selector named isGenerationPossible
Lnet/minecraft/world/StructureLocator;isGenerationPossible(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;)Z
intermediary method_39829
Lnet/minecraft/class_6832;method_39829(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;)Z
official b
Lein;b(Ldbh;Leim;)Z
-
getStructurePresence
@Nullable private @Nullable StructurePresence getStructurePresence(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) - Mappings:
Namespace Name Mixin selector named getStructurePresence
Lnet/minecraft/world/StructureLocator;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;ZJ)Lnet/minecraft/world/StructurePresence;
intermediary method_39832
Lnet/minecraft/class_6832;method_39832(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;ZJ)Lnet/minecraft/class_6833;
official a
Lein;a(Ldbh;Leim;ZJ)Leio;
-
collectStructuresAndReferences
@Nullable private @Nullable Object2IntMap<Structure> collectStructuresAndReferences(NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named collectStructuresAndReferences
Lnet/minecraft/world/StructureLocator;collectStructuresAndReferences(Lnet/minecraft/nbt/NbtCompound;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary method_39842
Lnet/minecraft/class_6832;method_39842(Lnet/minecraft/class_2487;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official a
Lein;a(Lus;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
createMapIfEmpty
- Mappings:
Namespace Name Mixin selector named createMapIfEmpty
Lnet/minecraft/world/StructureLocator;createMapIfEmpty(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary method_39838
Lnet/minecraft/class_6832;method_39838(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official a
Lein;a(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 named getStructurePresence
Lnet/minecraft/world/StructureLocator;getStructurePresence(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/world/gen/structure/Structure;Z)Lnet/minecraft/world/StructurePresence;
intermediary method_39840
Lnet/minecraft/class_6832;method_39840(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/class_3195;Z)Lnet/minecraft/class_6833;
official a
Lein;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Leim;Z)Leio;
-
cache
- Mappings:
Namespace Name Mixin selector named cache
Lnet/minecraft/world/StructureLocator;cache(Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;)V
intermediary method_39833
Lnet/minecraft/class_6832;method_39833(Lnet/minecraft/class_1923;Ljava/util/Map;)V
official a
Lein;a(Ldbh;Ljava/util/Map;)V
-
cache
- Mappings:
Namespace Name Mixin selector named cache
Lnet/minecraft/world/StructureLocator;cache(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
intermediary method_39828
Lnet/minecraft/class_6832;method_39828(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
official a
Lein;a(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
-
incrementReferences
- Mappings:
Namespace Name Mixin selector named incrementReferences
Lnet/minecraft/world/StructureLocator;incrementReferences(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;)V
intermediary method_39830
Lnet/minecraft/class_6832;method_39830(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;)V
official a
Lein;a(Ldbh;Leim;)V
-