Package net.minecraft.world
Class StructureLocator
java.lang.Object
net.minecraft.world.StructureLocator
- Mappings:
Namespace Name official dfc
intermediary net/minecraft/class_6832
named net/minecraft/world/StructureLocator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeSource
private final Long2ObjectMap<Object2IntMap<StructureFeature<?>>>
private final ChunkGenerator
private final NbtScannable
private final com.mojang.datafixers.DataFixer
private final Map<StructureFeature<?>,
Long2BooleanMap> private static final Logger
private final DynamicRegistryManager
private final long
private static final int
private final StructureManager
private final HeightLimitView
private final RegistryKey<World>
-
Constructor Summary
ConstructorDescriptionStructureLocator
(NbtScannable chunkIoWorker, DynamicRegistryManager registryManager, StructureManager structureManager, RegistryKey<World> worldKey, ChunkGenerator chunkGenerator, HeightLimitView world, BiomeSource biomeSource, long seed, com.mojang.datafixers.DataFixer dataFixer) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
cache
(long pos, Object2IntMap<StructureFeature<?>> referencesByStructure) void
cache
(ChunkPos pos, Map<StructureFeature<?>, StructureStart<?>> structureStarts) private @Nullable Object2IntMap<StructureFeature<?>>
private static Object2IntMap<StructureFeature<?>>
private StructurePresence
getStructurePresence
(Object2IntMap<StructureFeature<?>> referencesByStructure, StructureFeature<?> feature, boolean skipExistingChunk) <F extends StructureFeature<?>>
StructurePresencegetStructurePresence
(ChunkPos pos, F feature, boolean skipExistingChunk) private @Nullable StructurePresence
getStructurePresence
(ChunkPos pos, StructureFeature<?> feature, boolean skipExistingChunk, long posLong) void
incrementReferences
(ChunkPos pos, StructureFeature<?> feature) private <FC extends FeatureConfig,
F extends StructureFeature<FC>>
booleanisGenerationPossible
(ChunkPos pos, ConfiguredStructureFeature<FC, F> feature, Collection<RegistryKey<Biome>> allowedBiomes) Returns whetherfeature
is able to generate inpos
.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a:Lorg/apache/logging/log4j/Logger;
intermediary field_36225
Lnet/minecraft/class_6832;field_36225:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/StructureLocator;LOGGER:Lorg/apache/logging/log4j/Logger;
-
START_NOT_PRESENT_REFERENCE
private static final int START_NOT_PRESENT_REFERENCE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldfc;b:I
intermediary field_36226
Lnet/minecraft/class_6832;field_36226:I
named START_NOT_PRESENT_REFERENCE
Lnet/minecraft/world/StructureLocator;START_NOT_PRESENT_REFERENCE:I
-
chunkIoWorker
- Mappings:
Namespace Name Mixin selector official c
Ldfc;c:Lcqu;
intermediary field_36227
Lnet/minecraft/class_6832;field_36227:Lnet/minecraft/class_6830;
named chunkIoWorker
Lnet/minecraft/world/StructureLocator;chunkIoWorker:Lnet/minecraft/world/storage/NbtScannable;
-
registryManager
- Mappings:
Namespace Name Mixin selector official d
Ldfc;d:Lgy;
intermediary field_36228
Lnet/minecraft/class_6832;field_36228:Lnet/minecraft/class_5455;
named registryManager
Lnet/minecraft/world/StructureLocator;registryManager:Lnet/minecraft/util/registry/DynamicRegistryManager;
-
biomeRegistry
- Mappings:
Namespace Name Mixin selector official e
Ldfc;e:Lgx;
intermediary field_36229
Lnet/minecraft/class_6832;field_36229:Lnet/minecraft/class_2378;
named biomeRegistry
Lnet/minecraft/world/StructureLocator;biomeRegistry:Lnet/minecraft/util/registry/Registry;
-
structureManager
- Mappings:
Namespace Name Mixin selector official f
Ldfc;f:Ldgp;
intermediary field_36230
Lnet/minecraft/class_6832;field_36230:Lnet/minecraft/class_3485;
named structureManager
Lnet/minecraft/world/StructureLocator;structureManager:Lnet/minecraft/structure/StructureManager;
-
worldKey
- Mappings:
Namespace Name Mixin selector official g
Ldfc;g:Lyg;
intermediary field_36231
Lnet/minecraft/class_6832;field_36231:Lnet/minecraft/class_5321;
named worldKey
Lnet/minecraft/world/StructureLocator;worldKey:Lnet/minecraft/util/registry/RegistryKey;
-
chunkGenerator
- Mappings:
Namespace Name Mixin selector official h
Ldfc;h:Lcpz;
intermediary field_36232
Lnet/minecraft/class_6832;field_36232:Lnet/minecraft/class_2794;
named chunkGenerator
Lnet/minecraft/world/StructureLocator;chunkGenerator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
world
- Mappings:
Namespace Name Mixin selector official i
Ldfc;i:Lcaf;
intermediary field_36233
Lnet/minecraft/class_6832;field_36233:Lnet/minecraft/class_5539;
named world
Lnet/minecraft/world/StructureLocator;world:Lnet/minecraft/world/HeightLimitView;
-
biomeSource
- Mappings:
Namespace Name Mixin selector official j
Ldfc;j:Lcbd;
intermediary field_36234
Lnet/minecraft/class_6832;field_36234:Lnet/minecraft/class_1966;
named biomeSource
Lnet/minecraft/world/StructureLocator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official k
Ldfc;k:J
intermediary field_36235
Lnet/minecraft/class_6832;field_36235:J
named seed
Lnet/minecraft/world/StructureLocator;seed:J
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official l
Ldfc;l:Lcom/mojang/datafixers/DataFixer;
intermediary field_36236
Lnet/minecraft/class_6832;field_36236:Lcom/mojang/datafixers/DataFixer;
named dataFixer
Lnet/minecraft/world/StructureLocator;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
cachedFeaturesByChunkPos
- Mappings:
Namespace Name Mixin selector official m
Ldfc;m:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_36237
Lnet/minecraft/class_6832;field_36237:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named cachedFeaturesByChunkPos
Lnet/minecraft/world/StructureLocator;cachedFeaturesByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
generationPossibilityByFeature
- Mappings:
Namespace Name Mixin selector official n
Ldfc;n:Ljava/util/Map;
intermediary field_36238
Lnet/minecraft/class_6832;field_36238:Ljava/util/Map;
named generationPossibilityByFeature
Lnet/minecraft/world/StructureLocator;generationPossibilityByFeature:Ljava/util/Map;
-
-
Constructor Details
-
StructureLocator
public StructureLocator(NbtScannable chunkIoWorker, DynamicRegistryManager registryManager, StructureManager structureManager, RegistryKey<World> worldKey, ChunkGenerator chunkGenerator, HeightLimitView world, BiomeSource biomeSource, long seed, com.mojang.datafixers.DataFixer dataFixer) - Mappings:
Namespace Name Mixin selector official <init>
Ldfc;<init>(Lcqu;Lgy;Ldgp;Lyg;Lcpz;Lcaf;Lcbd;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_5539;Lnet/minecraft/class_1966;JLcom/mojang/datafixers/DataFixer;)V
named <init>
Lnet/minecraft/world/StructureLocator;<init>(Lnet/minecraft/world/storage/NbtScannable;Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/biome/source/BiomeSource;JLcom/mojang/datafixers/DataFixer;)V
-
-
Method Details
-
getStructurePresence
public <F extends StructureFeature<?>> StructurePresence getStructurePresence(ChunkPos pos, F feature, boolean skipExistingChunk) - Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lbzk;Lcyi;Z)Ldfd;
intermediary method_39831
Lnet/minecraft/class_6832;method_39831(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;Z)Lnet/minecraft/class_6833;
named getStructurePresence
Lnet/minecraft/world/StructureLocator;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/StructureFeature;Z)Lnet/minecraft/world/StructurePresence;
-
isGenerationPossible
private <FC extends FeatureConfig,F extends StructureFeature<FC>> boolean isGenerationPossible(ChunkPos pos, ConfiguredStructureFeature<FC, F> feature, Collection<RegistryKey<Biome>> allowedBiomes) Returns whetherfeature
is able to generate inpos
.This method only performs simple checks like biomes.
- Parameters:
allowedBiomes
- the list of biomes where thefeature
can generate- Returns:
- whether
feature
is able to generate inpos
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lbzk;Lcvw;Ljava/util/Collection;)Z
intermediary method_39829
Lnet/minecraft/class_6832;method_39829(Lnet/minecraft/class_1923;Lnet/minecraft/class_5312;Ljava/util/Collection;)Z
named isGenerationPossible
Lnet/minecraft/world/StructureLocator;isGenerationPossible(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;Ljava/util/Collection;)Z
-
getStructurePresence
@Nullable private @Nullable StructurePresence getStructurePresence(ChunkPos pos, StructureFeature<?> feature, boolean skipExistingChunk, long posLong) - Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lbzk;Lcyi;ZJ)Ldfd;
intermediary method_39832
Lnet/minecraft/class_6832;method_39832(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;ZJ)Lnet/minecraft/class_6833;
named getStructurePresence
Lnet/minecraft/world/StructureLocator;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/StructureFeature;ZJ)Lnet/minecraft/world/StructurePresence;
-
collectStructuresAndReferences
@Nullable private @Nullable Object2IntMap<StructureFeature<?>> collectStructuresAndReferences(NbtCompound nbt) - Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Loc;)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;
named collectStructuresAndReferences
Lnet/minecraft/world/StructureLocator;collectStructuresAndReferences(Lnet/minecraft/nbt/NbtCompound;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
createMapIfEmpty
private static Object2IntMap<StructureFeature<?>> createMapIfEmpty(Object2IntMap<StructureFeature<?>> map) - Mappings:
Namespace Name Mixin selector official a
Ldfc;a(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;
named createMapIfEmpty
Lnet/minecraft/world/StructureLocator;createMapIfEmpty(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
getStructurePresence
private StructurePresence getStructurePresence(Object2IntMap<StructureFeature<?>> referencesByStructure, StructureFeature<?> feature, boolean skipExistingChunk) - Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lcyi;Z)Ldfd;
intermediary method_39840
Lnet/minecraft/class_6832;method_39840(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/class_3195;Z)Lnet/minecraft/class_6833;
named getStructurePresence
Lnet/minecraft/world/StructureLocator;getStructurePresence(Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/world/gen/feature/StructureFeature;Z)Lnet/minecraft/world/StructurePresence;
-
cache
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lbzk;Ljava/util/Map;)V
intermediary method_39833
Lnet/minecraft/class_6832;method_39833(Lnet/minecraft/class_1923;Ljava/util/Map;)V
named cache
Lnet/minecraft/world/StructureLocator;cache(Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;)V
-
cache
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
intermediary method_39828
Lnet/minecraft/class_6832;method_39828(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
named cache
Lnet/minecraft/world/StructureLocator;cache(JLit/unimi/dsi/fastutil/objects/Object2IntMap;)V
-
incrementReferences
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Lbzk;Lcyi;)V
intermediary method_39830
Lnet/minecraft/class_6832;method_39830(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;)V
named incrementReferences
Lnet/minecraft/world/StructureLocator;incrementReferences(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/StructureFeature;)V
-