Class StructurePlacementCalculator

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

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

    • LOGGER

      private static final Logger 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 Ldzr;a:Lorg/slf4j/Logger;
    • noiseConfig

      private final NoiseConfig 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 Ldzr;b:Leed;
    • biomeSource

      private final BiomeSource 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 Ldzr;c:Ldin;
    • 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 Ldzr;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 Ldzr;e:J
    • structuresToPlacements

      private final Map<Structure,List<StructurePlacement>> 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 Ldzr;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 Ldzr;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 Ldzr;h:Z
    • structureSets

      private final List<RegistryEntry<StructureSet>> 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 Ldzr;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> Ldzr;<init>(Leed;Ldin;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 Ldzr;a(Leed;JLdin;Ljava/util/stream/Stream;)Ldzr;
    • 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 Ldzr;a(Leed;JLdin;Ljs;)Ldzr;
    • hasValidBiome

      private static boolean hasValidBiome(StructureSet structureSet, BiomeSource biomeSource)
      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 Ldzr;a(Leop;Ldin;)Z
    • getStructureSets

      public List<RegistryEntry<StructureSet>> 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 Ldzr;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 Ldzr;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 Ldzr;a(Ljq;Lepd;)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 Ldzr;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 Ldzr;a(Lepd;)Ljava/util/List;
    • getPlacements

      public List<StructurePlacement> getPlacements(RegistryEntry<Structure> structureEntry)
      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 Ldzr;a(Ljq;)Ljava/util/List;
    • getNoiseConfig

      public NoiseConfig 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 Ldzr;c()Leed;
    • 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 Ldzr;a(Ljq;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 Ldzr;d()J