Class StructurePlacementCalculator
java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacementCalculator
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/placement/StructurePlacementCalculator
intermediary net/minecraft/class_7869
official duy
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeSource
private boolean
private final Map
<ConcentricRingsStructurePlacement, CompletableFuture<List<ChunkPos>>> private final long
private static final Logger
private final NoiseConfig
private final long
private final List
<RegistryEntry<StructureSet>> private final Map
<Structure, List<StructurePlacement>> -
Constructor Summary
ModifierConstructorDescriptionprivate
StructurePlacementCalculator
(NoiseConfig noiseConfig, BiomeSource biomeSource, long structureSeed, long concentricRingSeed, List<RegistryEntry<StructureSet>> structureSets) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private CompletableFuture
<List<ChunkPos>> calculateConcentricsRingPlacementPos
(RegistryEntry<StructureSet> structureSetEntry, ConcentricRingsStructurePlacement placement) boolean
canGenerate
(RegistryEntry<StructureSet> structureSetEntry, int centerChunkX, int centerChunkZ, int chunkCount) static StructurePlacementCalculator
create
(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, Stream<RegistryEntry<StructureSet>> structureSets) static StructurePlacementCalculator
create
(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, RegistryWrapper<StructureSet> structureSetRegistry) getPlacements
(RegistryEntry<Structure> structureEntry) long
private static boolean
hasValidBiome
(StructureSet structureSet, BiomeSource biomeSource) void
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;LOGGER:Lorg/slf4j/Logger;
intermediary field_40899
Lnet/minecraft/class_7869;field_40899:Lorg/slf4j/Logger;
official a
Lduy;a:Lorg/slf4j/Logger;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector named noiseConfig
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;
intermediary field_40900
Lnet/minecraft/class_7869;field_40900:Lnet/minecraft/class_7138;
official b
Lduy;b:Ldzj;
-
biomeSource
- Mappings:
Namespace Name Mixin selector named biomeSource
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
intermediary field_40901
Lnet/minecraft/class_7869;field_40901:Lnet/minecraft/class_1966;
official c
Lduy;c:Lddy;
-
structureSeed
private final long structureSeed- Mappings:
Namespace Name Mixin selector named structureSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structureSeed:J
intermediary field_40902
Lnet/minecraft/class_7869;field_40902:J
official d
Lduy;d:J
-
concentricRingSeed
private final long concentricRingSeed- Mappings:
Namespace Name Mixin selector named concentricRingSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;concentricRingSeed:J
intermediary field_40903
Lnet/minecraft/class_7869;field_40903:J
official e
Lduy;e:J
-
structuresToPlacements
- Mappings:
Namespace Name Mixin selector named structuresToPlacements
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structuresToPlacements:Ljava/util/Map;
intermediary field_40904
Lnet/minecraft/class_7869;field_40904:Ljava/util/Map;
official f
Lduy;f:Ljava/util/Map;
-
concentricPlacementsToPositions
private final Map<ConcentricRingsStructurePlacement,CompletableFuture<List<ChunkPos>>> concentricPlacementsToPositions- Mappings:
Namespace Name Mixin selector named concentricPlacementsToPositions
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;concentricPlacementsToPositions:Ljava/util/Map;
intermediary field_40905
Lnet/minecraft/class_7869;field_40905:Ljava/util/Map;
official g
Lduy;g:Ljava/util/Map;
-
calculated
private boolean calculated- Mappings:
Namespace Name Mixin selector named calculated
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculated:Z
intermediary field_40906
Lnet/minecraft/class_7869;field_40906:Z
official h
Lduy;h:Z
-
structureSets
- Mappings:
Namespace Name Mixin selector named structureSets
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structureSets:Ljava/util/List;
intermediary field_40907
Lnet/minecraft/class_7869;field_40907:Ljava/util/List;
official i
Lduy;i:Ljava/util/List;
-
-
Constructor Details
-
StructurePlacementCalculator
private StructurePlacementCalculator(NoiseConfig noiseConfig, BiomeSource biomeSource, long structureSeed, long concentricRingSeed, List<RegistryEntry<StructureSet>> structureSets) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;<init>(Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/biome/source/BiomeSource;JJLjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_7869;<init>(Lnet/minecraft/class_7138;Lnet/minecraft/class_1966;JJLjava/util/List;)V
official <init>
Lduy;<init>(Ldzj;Lddy;JJLjava/util/List;)V
-
-
Method Details
-
create
public static StructurePlacementCalculator create(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, Stream<RegistryEntry<StructureSet>> structureSets) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;create(Lnet/minecraft/world/gen/noise/NoiseConfig;JLnet/minecraft/world/biome/source/BiomeSource;Ljava/util/stream/Stream;)Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;
intermediary method_46703
Lnet/minecraft/class_7869;method_46703(Lnet/minecraft/class_7138;JLnet/minecraft/class_1966;Ljava/util/stream/Stream;)Lnet/minecraft/class_7869;
official a
Lduy;a(Ldzj;JLddy;Ljava/util/stream/Stream;)Lduy;
-
create
public static StructurePlacementCalculator create(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, RegistryWrapper<StructureSet> structureSetRegistry) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;create(Lnet/minecraft/world/gen/noise/NoiseConfig;JLnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/registry/RegistryWrapper;)Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;
intermediary method_46702
Lnet/minecraft/class_7869;method_46702(Lnet/minecraft/class_7138;JLnet/minecraft/class_1966;Lnet/minecraft/class_7225;)Lnet/minecraft/class_7869;
official a
Lduy;a(Ldzj;JLddy;Ljo;)Lduy;
-
hasValidBiome
- Mappings:
Namespace Name Mixin selector named hasValidBiome
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;hasValidBiome(Lnet/minecraft/structure/StructureSet;Lnet/minecraft/world/biome/source/BiomeSource;)Z
intermediary method_46706
Lnet/minecraft/class_7869;method_46706(Lnet/minecraft/class_7059;Lnet/minecraft/class_1966;)Z
official a
Lduy;a(Lejs;Lddy;)Z
-
getStructureSets
- Mappings:
Namespace Name Mixin selector named getStructureSets
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getStructureSets()Ljava/util/List;
intermediary method_46697
Lnet/minecraft/class_7869;method_46697()Ljava/util/List;
official a
Lduy;a()Ljava/util/List;
-
calculate
private void calculate()- Mappings:
Namespace Name Mixin selector named calculate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculate()V
intermediary method_46715
Lnet/minecraft/class_7869;method_46715()V
official e
Lduy;e()V
-
calculateConcentricsRingPlacementPos
private CompletableFuture<List<ChunkPos>> calculateConcentricsRingPlacementPos(RegistryEntry<StructureSet> structureSetEntry, ConcentricRingsStructurePlacement placement) - Mappings:
Namespace Name Mixin selector named calculateConcentricsRingPlacementPos
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculateConcentricsRingPlacementPos(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Ljava/util/concurrent/CompletableFuture;
intermediary method_46710
Lnet/minecraft/class_7869;method_46710(Lnet/minecraft/class_6880;Lnet/minecraft/class_6871;)Ljava/util/concurrent/CompletableFuture;
official a
Lduy;a(Ljm;Lekg;)Ljava/util/concurrent/CompletableFuture;
-
tryCalculate
public void tryCalculate()- Mappings:
Namespace Name Mixin selector named tryCalculate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;tryCalculate()V
intermediary method_46712
Lnet/minecraft/class_7869;method_46712()V
official b
Lduy;b()V
-
getPlacementPositions
@Nullable public @Nullable List<ChunkPos> getPlacementPositions(ConcentricRingsStructurePlacement placement) - Mappings:
Namespace Name Mixin selector named getPlacementPositions
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getPlacementPositions(Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Ljava/util/List;
intermediary method_46707
Lnet/minecraft/class_7869;method_46707(Lnet/minecraft/class_6871;)Ljava/util/List;
official a
Lduy;a(Lekg;)Ljava/util/List;
-
getPlacements
- Mappings:
Namespace Name Mixin selector named getPlacements
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getPlacements(Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/util/List;
intermediary method_46708
Lnet/minecraft/class_7869;method_46708(Lnet/minecraft/class_6880;)Ljava/util/List;
official a
Lduy;a(Ljm;)Ljava/util/List;
-
getNoiseConfig
- Mappings:
Namespace Name Mixin selector named getNoiseConfig
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getNoiseConfig()Lnet/minecraft/world/gen/noise/NoiseConfig;
intermediary method_46713
Lnet/minecraft/class_7869;method_46713()Lnet/minecraft/class_7138;
official c
Lduy;c()Ldzj;
-
canGenerate
public boolean canGenerate(RegistryEntry<StructureSet> structureSetEntry, int centerChunkX, int centerChunkZ, int chunkCount) - Mappings:
Namespace Name Mixin selector named canGenerate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;canGenerate(Lnet/minecraft/registry/entry/RegistryEntry;III)Z
intermediary method_46709
Lnet/minecraft/class_7869;method_46709(Lnet/minecraft/class_6880;III)Z
official a
Lduy;a(Ljm;III)Z
-
getStructureSeed
public long getStructureSeed()- Mappings:
Namespace Name Mixin selector named getStructureSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getStructureSeed()J
intermediary method_46714
Lnet/minecraft/class_7869;method_46714()J
official d
Lduy;d()J
-