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
named net/minecraft/world/gen/structure/Structure
intermediary net/minecraft/class_3195
official eix
  • Field Details

    • STRUCTURE_CODEC

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

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

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

    • Structure

      protected Structure(Structure.Config config)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/structure/Structure;<init>(Lnet/minecraft/world/gen/structure/Structure$Config;)V
      intermediary <init> Lnet/minecraft/class_3195;<init>(Lnet/minecraft/class_3195$class_7302;)V
      official <init> Leix;<init>(Leix$c;)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
      named configCodecBuilder Lnet/minecraft/world/gen/structure/Structure;configCodecBuilder(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;
      official a Leix;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • createCodec

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

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

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

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

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

      public BlockBox expandBoxIfShouldAdaptNoise(BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      named expandBoxIfShouldAdaptNoise Lnet/minecraft/world/gen/structure/Structure;expandBoxIfShouldAdaptNoise(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/util/math/BlockBox;
      intermediary method_41609 Lnet/minecraft/class_3195;method_41609(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3341;
      official a Leix;a(Leip;)Leip;
    • 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
      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;
      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;
      official a Leix;a(Ljx;Ldui;Lddk;Ldyu;Lemz;JLdbn;ILdci;Ljava/util/function/Predicate;)Lejf;
    • getStructurePosition

      protected static Optional<Structure.StructurePosition> getStructurePosition(Structure.Context context, Heightmap.Type heightmap, Consumer<StructurePiecesCollector> generator)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leix;a(Leix$a;Ldyg$a;Ljava/util/function/Consumer;)Ljava/util/Optional;
    • isBiomeValid

      private static boolean isBiomeValid(Structure.StructurePosition result, Structure.Context context)
      Mappings:
      Namespace Name Mixin selector
      named isBiomeValid Lnet/minecraft/world/gen/structure/Structure;isBiomeValid(Lnet/minecraft/world/gen/structure/Structure$StructurePosition;Lnet/minecraft/world/gen/structure/Structure$Context;)Z
      intermediary method_41613 Lnet/minecraft/class_3195;method_41613(Lnet/minecraft/class_3195$class_7150;Lnet/minecraft/class_3195$class_7149;)Z
      official a Leix;a(Leix$b;Leix$a;)Z
    • postPlace

      public void postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official a Leix;a(Lddc;Ldda;Ldui;Layo;Leip;Ldbn;Lejm;)V
    • getCornerHeights

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

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

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

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

      @Deprecated protected BlockPos getShiftedPos(Structure.Context context, BlockRotation rotation)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      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;
      intermediary method_42382 Lnet/minecraft/class_3195;method_42382(Lnet/minecraft/class_3195$class_7149;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2338;
      official a Leix;a(Leix$a;Ldlv;)Lja;
    • getStructurePosition

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

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

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