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
- Mappings:
Namespace Name named net/minecraft/world/gen/structure/Structure
intermediary net/minecraft/class_3195
official ejr
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Structure.Config
static final com.mojang.serialization.Codec
<RegistryEntry<Structure>> static final com.mojang.serialization.Codec
<Structure> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends Structure>
com.mojang.serialization.codecs.RecordCodecBuilder<S, Structure.Config> configCodecBuilder
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) static <S extends Structure>
com.mojang.serialization.MapCodec<S> createCodec
(Function<Structure.Config, S> featureCreator) createStructureStart
(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, int references, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiomes) static int
getAverageCornerHeights
(Structure.Context context, int x, int width, int z, int height) private static int[]
getCornerHeights
(Structure.Context context, int x, int width, int z, int height) protected static int
getMinCornerHeight
(Structure.Context context, int width, int height) protected static int
getMinCornerHeight
(Structure.Context context, int x, int z, int width, int height) protected BlockPos
getShiftedPos
(Structure.Context context, BlockRotation rotation) Deprecated.protected abstract Optional
<Structure.StructurePosition> getStructurePosition
(Structure.Context context) protected static Optional
<Structure.StructurePosition> getStructurePosition
(Structure.Context context, Heightmap.Type heightmap, Consumer<StructurePiecesCollector> generator) abstract StructureType
<?> getType()
private static boolean
isBiomeValid
(Structure.StructurePosition result, Structure.Context context) void
postPlace
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces)
-
Field Details
-
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
Lejr;a:Lcom/mojang/serialization/Codec;
-
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
Lejr;b:Lcom/mojang/serialization/Codec;
-
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
Lejr;c:Lejr$c;
-
-
Constructor Details
-
Structure
- 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>
Lejr;<init>(Lejr$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
Lejr;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
Lejr;a(Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
-
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
Lejr;a()Ljq;
-
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
Lejr;b()Ljava/util/Map;
-
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
Lejr;c()Ldyu$b;
-
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
Lejr;d()Lekc;
-
expandBoxIfShouldAdaptNoise
- 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
Lejr;a(Lejj;)Lejj;
-
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
Lejr;a(Lka;Lduz;Ldea;Ldzm;Lenu;JLdcd;ILdcy;Ljava/util/function/Predicate;)Lejz;
-
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
Lejr;a(Lejr$a;Ldyy$a;Ljava/util/function/Consumer;)Ljava/util/Optional;
-
isBiomeValid
- 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
Lejr;a(Lejr$b;Lejr$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
Lejr;a(Ldds;Lddq;Lduz;Layw;Lejj;Ldcd;Lekg;)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
Lejr;c(Lejr$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
Lejr;a(Lejr$a;IIII)I
-
getMinCornerHeight
- 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
Lejr;a(Lejr$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
Lejr;b(Lejr$a;IIII)I
-
getShiftedPos
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
Lejr;a(Lejr$a;Ldmm;)Ljd;
-
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
Lejr;a(Lejr$a;)Ljava/util/Optional;
-
getValidStructurePosition
- 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
Lejr;b(Lejr$a;)Ljava/util/Optional;
-
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
Lejr;e()Leka;
-