Class Structure

java.lang.Object
net.minecraft.world.gen.structure.Structure
Direct Known Subclasses:
BasicTempleStructure, BuriedTreasureStructure, EndCityStructure, IglooStructure, JigsawStructure, MineshaftStructure, NetherFortressStructure, NetherFossilStructure, OceanMonumentStructure, OceanRuinStructure, RuinedPortalStructure, ShipwreckStructure, StrongholdStructure, SwampHutStructure, WoodlandMansionStructure

public abstract class Structure extends Object
Mappings:
Namespace Name
official dlb
intermediary net/minecraft/class_3195
named net/minecraft/world/gen/structure/Structure
  • Field Details

    • STRUCTURE_CODEC

      public static final com.mojang.serialization.Codec<Structure> STRUCTURE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a:Lcom/mojang/serialization/Codec;
      intermediary field_37744 Lnet/minecraft/class_3195;field_37744:Lcom/mojang/serialization/Codec;
      named STRUCTURE_CODEC Lnet/minecraft/world/gen/structure/Structure;STRUCTURE_CODEC:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<Structure>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b:Lcom/mojang/serialization/Codec;
      intermediary field_37745 Lnet/minecraft/class_3195;field_37745:Lcom/mojang/serialization/Codec;
      named ENTRY_CODEC Lnet/minecraft/world/gen/structure/Structure;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
    • config

      protected final Structure.Config config
      Mappings:
      Namespace Name Mixin selector
      official c Ldlb;c:Ldlb$c;
      intermediary field_38429 Lnet/minecraft/class_3195;field_38429:Lnet/minecraft/class_3195$class_7302;
      named config Lnet/minecraft/world/gen/structure/Structure;config:Lnet/minecraft/world/gen/structure/Structure$Config;
  • Constructor Details

    • Structure

      protected Structure(Structure.Config config)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlb;<init>(Ldlb$c;)V
      intermediary <init> Lnet/minecraft/class_3195;<init>(Lnet/minecraft/class_3195$class_7302;)V
      named <init> Lnet/minecraft/world/gen/structure/Structure;<init>(Lnet/minecraft/world/gen/structure/Structure$Config;)V
  • Method Details

    • configCodecBuilder

      public static <S extends Structure> com.mojang.serialization.codecs.RecordCodecBuilder<S,Structure.Config> configCodecBuilder(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_42697 Lnet/minecraft/class_3195;method_42697(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named configCodecBuilder Lnet/minecraft/world/gen/structure/Structure;configCodecBuilder(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • createCodec

      public static <S extends Structure> com.mojang.serialization.Codec<S> createCodec(Function<Structure.Config,S> featureCreator)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_42699 Lnet/minecraft/class_3195;method_42699(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      named createCodec Lnet/minecraft/world/gen/structure/Structure;createCodec(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • getValidBiomes

      public RegistryEntryList<Biome> getValidBiomes()
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a()Lhe;
      intermediary method_41607 Lnet/minecraft/class_3195;method_41607()Lnet/minecraft/class_6885;
      named getValidBiomes Lnet/minecraft/world/gen/structure/Structure;getValidBiomes()Lnet/minecraft/util/registry/RegistryEntryList;
    • getStructureSpawns

      public Map<SpawnGroup,StructureSpawns> getStructureSpawns()
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b()Ljava/util/Map;
      intermediary method_41615 Lnet/minecraft/class_3195;method_41615()Ljava/util/Map;
      named getStructureSpawns Lnet/minecraft/world/gen/structure/Structure;getStructureSpawns()Ljava/util/Map;
    • getFeatureGenerationStep

      public GenerationStep.Feature getFeatureGenerationStep()
      Mappings:
      Namespace Name Mixin selector
      official c Ldlb;c()Ldan$b;
      intermediary method_41616 Lnet/minecraft/class_3195;method_41616()Lnet/minecraft/class_2893$class_2895;
      named getFeatureGenerationStep Lnet/minecraft/world/gen/structure/Structure;getFeatureGenerationStep()Lnet/minecraft/world/gen/GenerationStep$Feature;
    • getTerrainAdaptation

      public StructureTerrainAdaptation getTerrainAdaptation()
      Mappings:
      Namespace Name Mixin selector
      official d Ldlb;d()Ldlm;
      intermediary method_42701 Lnet/minecraft/class_3195;method_42701()Lnet/minecraft/class_5847;
      named getTerrainAdaptation Lnet/minecraft/world/gen/structure/Structure;getTerrainAdaptation()Lnet/minecraft/world/gen/StructureTerrainAdaptation;
    • expandBoxIfShouldAdaptNoise

      public BlockBox expandBoxIfShouldAdaptNoise(BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldkt;)Ldkt;
      intermediary method_41609 Lnet/minecraft/class_3195;method_41609(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3341;
      named expandBoxIfShouldAdaptNoise Lnet/minecraft/world/gen/structure/Structure;expandBoxIfShouldAdaptNoise(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/util/math/BlockBox;
    • createStructureStart

      public StructureStart createStructureStart(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, int references, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiomes)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lhn;Lcxk;Lchx;Ldbf;Ldou;JLcge;ILcgz;Ljava/util/function/Predicate;)Ldlj;
      intermediary method_41614 Lnet/minecraft/class_3195;method_41614(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_7138;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;ILnet/minecraft/class_5539;Ljava/util/function/Predicate;)Lnet/minecraft/class_3449;
      named createStructureStart Lnet/minecraft/world/gen/structure/Structure;createStructureStart(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/structure/StructureTemplateManager;JLnet/minecraft/util/math/ChunkPos;ILnet/minecraft/world/HeightLimitView;Ljava/util/function/Predicate;)Lnet/minecraft/structure/StructureStart;
    • getStructurePosition

      protected static Optional<Structure.StructurePosition> getStructurePosition(Structure.Context context, Heightmap.Type heightmap, Consumer<StructurePiecesCollector> generator)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$a;Ldar$a;Ljava/util/function/Consumer;)Ljava/util/Optional;
      intermediary method_41612 Lnet/minecraft/class_3195;method_41612(Lnet/minecraft/class_3195$class_7149;Lnet/minecraft/class_2902$class_2903;Ljava/util/function/Consumer;)Ljava/util/Optional;
      named getStructurePosition Lnet/minecraft/world/gen/structure/Structure;getStructurePosition(Lnet/minecraft/world/gen/structure/Structure$Context;Lnet/minecraft/world/Heightmap$Type;Ljava/util/function/Consumer;)Ljava/util/Optional;
    • isBiomeValid

      private static boolean isBiomeValid(Structure.StructurePosition result, ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, Predicate<RegistryEntry<Biome>> validBiomes)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$b;Lcxk;Ldbf;Ljava/util/function/Predicate;)Z
      intermediary method_41613 Lnet/minecraft/class_3195;method_41613(Lnet/minecraft/class_3195$class_7150;Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;Ljava/util/function/Predicate;)Z
      named isBiomeValid Lnet/minecraft/world/gen/structure/Structure;isBiomeValid(Lnet/minecraft/world/gen/structure/Structure$StructurePosition;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;Ljava/util/function/Predicate;)Z
    • postPlace

      public void postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lchp;Lcho;Lcxk;Lamn;Ldkt;Lcge;Ldlq;)V
      intermediary method_38694 Lnet/minecraft/class_3195;method_38694(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;Lnet/minecraft/class_6624;)V
      named postPlace Lnet/minecraft/world/gen/structure/Structure;postPlace(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/structure/StructurePiecesList;)V
    • getCornerHeights

      private static int[] getCornerHeights(Structure.Context context, int x, int width, int z, int height)
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b(Ldlb$a;IIII)[I
      intermediary method_41611 Lnet/minecraft/class_3195;method_41611(Lnet/minecraft/class_3195$class_7149;IIII)[I
      named getCornerHeights Lnet/minecraft/world/gen/structure/Structure;getCornerHeights(Lnet/minecraft/world/gen/structure/Structure$Context;IIII)[I
    • getMinCornerHeight

      protected static int getMinCornerHeight(Structure.Context context, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$a;II)I
      intermediary method_41610 Lnet/minecraft/class_3195;method_41610(Lnet/minecraft/class_3195$class_7149;II)I
      named getMinCornerHeight Lnet/minecraft/world/gen/structure/Structure;getMinCornerHeight(Lnet/minecraft/world/gen/structure/Structure$Context;II)I
    • getMinCornerHeight

      protected static int getMinCornerHeight(Structure.Context context, int x, int z, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$a;IIII)I
      intermediary method_42381 Lnet/minecraft/class_3195;method_42381(Lnet/minecraft/class_3195$class_7149;IIII)I
      named getMinCornerHeight Lnet/minecraft/world/gen/structure/Structure;getMinCornerHeight(Lnet/minecraft/world/gen/structure/Structure$Context;IIII)I
    • getShiftedPos

      @Deprecated protected BlockPos getShiftedPos(Structure.Context context, BlockRotation rotation)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$a;Lcpw;)Lgt;
      intermediary method_42382 Lnet/minecraft/class_3195;method_42382(Lnet/minecraft/class_3195$class_7149;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2338;
      named getShiftedPos Lnet/minecraft/world/gen/structure/Structure;getShiftedPos(Lnet/minecraft/world/gen/structure/Structure$Context;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockPos;
    • getStructurePosition

      public abstract Optional<Structure.StructurePosition> getStructurePosition(Structure.Context context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Ldlb$a;)Ljava/util/Optional;
      intermediary method_38676 Lnet/minecraft/class_3195;method_38676(Lnet/minecraft/class_3195$class_7149;)Ljava/util/Optional;
      named getStructurePosition Lnet/minecraft/world/gen/structure/Structure;getStructurePosition(Lnet/minecraft/world/gen/structure/Structure$Context;)Ljava/util/Optional;
    • getType

      public abstract StructureType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official e Ldlb;e()Ldlk;
      intermediary method_41618 Lnet/minecraft/class_3195;method_41618()Lnet/minecraft/class_7151;
      named getType Lnet/minecraft/world/gen/structure/Structure;getType()Lnet/minecraft/world/gen/structure/StructureType;