Class StructurePlacementCalculator
java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacementCalculator
- Mappings:
Namespace Name official ddr
intermediary net/minecraft/class_7869
named net/minecraft/world/gen/chunk/placement/StructurePlacementCalculator
-
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 official a
Lddr;a:Lorg/slf4j/Logger;
intermediary field_40899
Lnet/minecraft/class_7869;field_40899:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;LOGGER:Lorg/slf4j/Logger;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector official b
Lddr;b:Ldhq;
intermediary field_40900
Lnet/minecraft/class_7869;field_40900:Lnet/minecraft/class_7138;
named noiseConfig
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;
-
biomeSource
- Mappings:
Namespace Name Mixin selector official c
Lddr;c:Lcnh;
intermediary field_40901
Lnet/minecraft/class_7869;field_40901:Lnet/minecraft/class_1966;
named biomeSource
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
structureSeed
private final long structureSeed- Mappings:
Namespace Name Mixin selector official d
Lddr;d:J
intermediary field_40902
Lnet/minecraft/class_7869;field_40902:J
named structureSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structureSeed:J
-
concentricRingSeed
private final long concentricRingSeed- Mappings:
Namespace Name Mixin selector official e
Lddr;e:J
intermediary field_40903
Lnet/minecraft/class_7869;field_40903:J
named concentricRingSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;concentricRingSeed:J
-
structuresToPlacements
- Mappings:
Namespace Name Mixin selector official f
Lddr;f:Ljava/util/Map;
intermediary field_40904
Lnet/minecraft/class_7869;field_40904:Ljava/util/Map;
named structuresToPlacements
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structuresToPlacements:Ljava/util/Map;
-
concentricPlacementsToPositions
private final Map<ConcentricRingsStructurePlacement,CompletableFuture<List<ChunkPos>>> concentricPlacementsToPositions- Mappings:
Namespace Name Mixin selector official g
Lddr;g:Ljava/util/Map;
intermediary field_40905
Lnet/minecraft/class_7869;field_40905:Ljava/util/Map;
named concentricPlacementsToPositions
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;concentricPlacementsToPositions:Ljava/util/Map;
-
calculated
private boolean calculated- Mappings:
Namespace Name Mixin selector official h
Lddr;h:Z
intermediary field_40906
Lnet/minecraft/class_7869;field_40906:Z
named calculated
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculated:Z
-
structureSets
- Mappings:
Namespace Name Mixin selector official i
Lddr;i:Ljava/util/List;
intermediary field_40907
Lnet/minecraft/class_7869;field_40907:Ljava/util/List;
named structureSets
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;structureSets: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 official <init>
Lddr;<init>(Ldhq;Lcnh;JJLjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_7869;<init>(Lnet/minecraft/class_7138;Lnet/minecraft/class_1966;JJLjava/util/List;)V
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
-
-
Method Details
-
create
public static StructurePlacementCalculator create(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, Stream<RegistryEntry<StructureSet>> structureSets) - Mappings:
Namespace Name Mixin selector official a
Lddr;a(Ldhq;JLcnh;Ljava/util/stream/Stream;)Lddr;
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;
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;
-
create
public static StructurePlacementCalculator create(NoiseConfig noiseConfig, long seed, BiomeSource biomeSource, RegistryWrapper<StructureSet> structureSetRegistry) - Mappings:
Namespace Name Mixin selector official a
Lddr;a(Ldhq;JLcnh;Lhg;)Lddr;
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;
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;
-
hasValidBiome
- Mappings:
Namespace Name Mixin selector official a
Lddr;a(Ldry;Lcnh;)Z
intermediary method_46706
Lnet/minecraft/class_7869;method_46706(Lnet/minecraft/class_7059;Lnet/minecraft/class_1966;)Z
named hasValidBiome
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;hasValidBiome(Lnet/minecraft/structure/StructureSet;Lnet/minecraft/world/biome/source/BiomeSource;)Z
-
getStructureSets
- Mappings:
Namespace Name Mixin selector official a
Lddr;a()Ljava/util/List;
intermediary method_46697
Lnet/minecraft/class_7869;method_46697()Ljava/util/List;
named getStructureSets
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getStructureSets()Ljava/util/List;
-
calculate
private void calculate()- Mappings:
Namespace Name Mixin selector official e
Lddr;e()V
intermediary method_46715
Lnet/minecraft/class_7869;method_46715()V
named calculate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculate()V
-
calculateConcentricsRingPlacementPos
private CompletableFuture<List<ChunkPos>> calculateConcentricsRingPlacementPos(RegistryEntry<StructureSet> structureSetEntry, ConcentricRingsStructurePlacement placement) - Mappings:
Namespace Name Mixin selector official a
Lddr;a(Lhe;Ldsm;)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;
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;
-
tryCalculate
public void tryCalculate()- Mappings:
Namespace Name Mixin selector official b
Lddr;b()V
intermediary method_46712
Lnet/minecraft/class_7869;method_46712()V
named tryCalculate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;tryCalculate()V
-
getPlacementPositions
@Nullable public @Nullable List<ChunkPos> getPlacementPositions(ConcentricRingsStructurePlacement placement) - Mappings:
Namespace Name Mixin selector official a
Lddr;a(Ldsm;)Ljava/util/List;
intermediary method_46707
Lnet/minecraft/class_7869;method_46707(Lnet/minecraft/class_6871;)Ljava/util/List;
named getPlacementPositions
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getPlacementPositions(Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Ljava/util/List;
-
getPlacements
- Mappings:
Namespace Name Mixin selector official a
Lddr;a(Lhe;)Ljava/util/List;
intermediary method_46708
Lnet/minecraft/class_7869;method_46708(Lnet/minecraft/class_6880;)Ljava/util/List;
named getPlacements
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getPlacements(Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/util/List;
-
getNoiseConfig
- Mappings:
Namespace Name Mixin selector official c
Lddr;c()Ldhq;
intermediary method_46713
Lnet/minecraft/class_7869;method_46713()Lnet/minecraft/class_7138;
named getNoiseConfig
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getNoiseConfig()Lnet/minecraft/world/gen/noise/NoiseConfig;
-
canGenerate
public boolean canGenerate(RegistryEntry<StructureSet> structureSetEntry, int centerChunkX, int centerChunkZ, int chunkCount) - Mappings:
Namespace Name Mixin selector official a
Lddr;a(Lhe;III)Z
intermediary method_46709
Lnet/minecraft/class_7869;method_46709(Lnet/minecraft/class_6880;III)Z
named canGenerate
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;canGenerate(Lnet/minecraft/registry/entry/RegistryEntry;III)Z
-
getStructureSeed
public long getStructureSeed()- Mappings:
Namespace Name Mixin selector official d
Lddr;d()J
intermediary method_46714
Lnet/minecraft/class_7869;method_46714()J
named getStructureSeed
Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getStructureSeed()J
-