Class StructurePlacementCalculator

java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacementCalculator

public class StructurePlacementCalculator extends Object
Mappings:
Namespace Name
official ddz
intermediary net/minecraft/class_7869
named net/minecraft/world/gen/chunk/placement/StructurePlacementCalculator
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lddz;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

      private final NoiseConfig noiseConfig
      Mappings:
      Namespace Name Mixin selector
      official b Lddz;b:Ldhy;
      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

      private final BiomeSource biomeSource
      Mappings:
      Namespace Name Mixin selector
      official c Lddz;c:Lcno;
      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 Lddz;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 Lddz;e:J
      intermediary field_40903 Lnet/minecraft/class_7869;field_40903:J
      named concentricRingSeed Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;concentricRingSeed:J
    • structuresToPlacements

      private final Map<Structure,List<StructurePlacement>> structuresToPlacements
      Mappings:
      Namespace Name Mixin selector
      official f Lddz;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 Lddz;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 Lddz;h:Z
      intermediary field_40906 Lnet/minecraft/class_7869;field_40906:Z
      named calculated Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;calculated:Z
    • structureSets

      private final List<RegistryEntry<StructureSet>> structureSets
      Mappings:
      Namespace Name Mixin selector
      official i Lddz;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> Lddz;<init>(Ldhy;Lcno;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 Lddz;a(Ldhy;JLcno;Ljava/util/stream/Stream;)Lddz;
      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 Lddz;a(Ldhy;JLcno;Lhg;)Lddz;
      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

      private static boolean hasValidBiome(StructureSet structureSet, BiomeSource biomeSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lddz;a(Ldsg;Lcno;)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

      public List<RegistryEntry<StructureSet>> getStructureSets()
      Mappings:
      Namespace Name Mixin selector
      official a Lddz;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 Lddz;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 Lddz;a(Lhe;Ldsu;)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 Lddz;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 Lddz;a(Ldsu;)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

      public List<StructurePlacement> getPlacements(RegistryEntry<Structure> structureEntry)
      Mappings:
      Namespace Name Mixin selector
      official a Lddz;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

      public NoiseConfig getNoiseConfig()
      Mappings:
      Namespace Name Mixin selector
      official c Lddz;c()Ldhy;
      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 Lddz;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 Lddz;d()J
      intermediary method_46714 Lnet/minecraft/class_7869;method_46714()J
      named getStructureSeed Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;getStructureSeed()J