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 dvi
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 Ldvi;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 Ldvi;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 Ldvi;c:Ldvi$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> Ldvi;<init>(Ldvi$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 Ldvi;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 Ldvi;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 Ldvi;a()Lhi;
      intermediary method_41607 Lnet/minecraft/class_3195;method_41607()Lnet/minecraft/class_6885;
      named getValidBiomes Lnet/minecraft/world/gen/structure/Structure;getValidBiomes()Lnet/minecraft/registry/entry/RegistryEntryList;
    • getStructureSpawns

      public Map<SpawnGroup,StructureSpawns> getStructureSpawns()
      Mappings:
      Namespace Name Mixin selector
      official b Ldvi;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 Ldvi;c()Ldko$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 Ldvi;d()Ldvt;
      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 Ldvi;a(Ldva;)Ldva;
      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 Ldvi;a(Lhr;Ldhg;Lcqx;Ldlg;Ldzc;JLcpc;ILcpx;Ljava/util/function/Predicate;)Ldvq;
      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/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 Ldvi;a(Ldvi$a;Ldks$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, Structure.Context context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvi;a(Ldvi$b;Ldvi$a;)Z
      intermediary method_41613 Lnet/minecraft/class_3195;method_41613(Lnet/minecraft/class_3195$class_7150;Lnet/minecraft/class_3195$class_7149;)Z
      named isBiomeValid Lnet/minecraft/world/gen/structure/Structure;isBiomeValid(Lnet/minecraft/world/gen/structure/Structure$StructurePosition;Lnet/minecraft/world/gen/structure/Structure$Context;)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 Ldvi;a(Lcqp;Lcqn;Ldhg;Lasc;Ldva;Lcpc;Ldvx;)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 Ldvi;b(Ldvi$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 Ldvi;a(Ldvi$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 Ldvi;a(Ldvi$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 Ldvi;a(Ldvi$a;Lczh;)Lgw;
      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

      protected abstract Optional<Structure.StructurePosition> getStructurePosition(Structure.Context context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvi;a(Ldvi$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;
    • getValidStructurePosition

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

      public abstract StructureType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official e Ldvi;e()Ldvr;
      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;