Class StructurePiece

java.lang.Object
net.minecraft.structure.StructurePiece
Direct Known Subclasses:
class_2762, MineshaftPieces.MineshaftCorridor, MineshaftPieces.MineshaftCrossing, MineshaftPieces.MineshaftRoom, MineshaftPieces.MineshaftStairs, NetherFortressPieces.AbstractPiece, OceanMonumentPieces.AbstractPiece, StrongholdPieces.AbstractPiece, TemplePieces.AbstractPiece, VillagePieces.AbstractPiece

public abstract class StructurePiece extends Object
Mappings:
Namespace Name
official awg
intermediary net/minecraft/class_34
named net/minecraft/structure/StructurePiece
  • Field Details

    • boundingBox

      protected BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official l Lawg;l:Lavp;
      intermediary field_64 Lnet/minecraft/class_34;field_64:Lnet/minecraft/class_1251;
      named boundingBox Lnet/minecraft/structure/StructurePiece;boundingBox:Lnet/minecraft/util/math/BlockBox;
    • facing

      @Nullable private Direction facing
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a:Lcs;
      intermediary field_10226 Lnet/minecraft/class_34;field_10226:Lnet/minecraft/class_1354;
      named facing Lnet/minecraft/structure/StructurePiece;facing:Lnet/minecraft/util/math/Direction;
    • field_13013

      private BlockMirror field_13013
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b:Lamr;
      intermediary field_13013 Lnet/minecraft/class_34;field_13013:Lnet/minecraft/class_2727;
      named field_13013 Lnet/minecraft/structure/StructurePiece;field_13013:Lnet/minecraft/util/BlockMirror;
    • field_13014

      private BlockRotation field_13014
      Mappings:
      Namespace Name Mixin selector
      official c Lawg;c:Laoe;
      intermediary field_13014 Lnet/minecraft/class_34;field_13014:Lnet/minecraft/class_2734;
      named field_13014 Lnet/minecraft/structure/StructurePiece;field_13014:Lnet/minecraft/util/BlockRotation;
    • chainLength

      protected int chainLength
      Mappings:
      Namespace Name Mixin selector
      official m Lawg;m:I
      intermediary field_66 Lnet/minecraft/class_34;field_66:I
      named chainLength Lnet/minecraft/structure/StructurePiece;chainLength:I
  • Constructor Details

    • StructurePiece

      public StructurePiece()
    • StructurePiece

      protected StructurePiece(int chainLength)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawg;<init>(I)V
      intermediary <init> Lnet/minecraft/class_34;<init>(I)V
      named <init> Lnet/minecraft/structure/StructurePiece;<init>(I)V
  • Method Details

    • toNbt

      public final NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b()Ldq;
      intermediary method_5529 Lnet/minecraft/class_34;method_5529()Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/structure/StructurePiece;toNbt()Lnet/minecraft/nbt/NbtCompound;
    • serialize

      protected abstract void serialize(NbtCompound structureNbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Ldq;)V
      intermediary method_5528 Lnet/minecraft/class_34;method_5528(Lnet/minecraft/class_322;)V
      named serialize Lnet/minecraft/structure/StructurePiece;serialize(Lnet/minecraft/nbt/NbtCompound;)V
    • fromNbt

      public void fromNbt(World world, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Ldq;)V
      intermediary method_5527 Lnet/minecraft/class_34;method_5527(Lnet/minecraft/class_1150;Lnet/minecraft/class_322;)V
      named fromNbt Lnet/minecraft/structure/StructurePiece;fromNbt(Lnet/minecraft/world/World;Lnet/minecraft/nbt/NbtCompound;)V
    • deserialize

      protected abstract void deserialize(NbtCompound structureNbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b(Ldq;)V
      intermediary method_5530 Lnet/minecraft/class_34;method_5530(Lnet/minecraft/class_322;)V
      named deserialize Lnet/minecraft/structure/StructurePiece;deserialize(Lnet/minecraft/nbt/NbtCompound;)V
    • fillOpenings

      public void fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Lawg;Ljava/util/List;Ljava/util/Random;)V
      intermediary method_54 Lnet/minecraft/class_34;method_54(Lnet/minecraft/class_34;Ljava/util/List;Ljava/util/Random;)V
      named fillOpenings Lnet/minecraft/structure/StructurePiece;fillOpenings(Lnet/minecraft/structure/StructurePiece;Ljava/util/List;Ljava/util/Random;)V
    • generate

      public abstract boolean generate(World world, Random random, BlockBox boundingBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Ljava/util/Random;Lavp;)Z
      intermediary method_58 Lnet/minecraft/class_34;method_58(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_1251;)Z
      named generate Lnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;)Z
    • getBoundingBox

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official c Lawg;c()Lavp;
      intermediary method_70 Lnet/minecraft/class_34;method_70()Lnet/minecraft/class_1251;
      named getBoundingBox Lnet/minecraft/structure/StructurePiece;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
    • getChainLength

      public int getChainLength()
      Mappings:
      Namespace Name Mixin selector
      official d Lawg;d()I
      intermediary method_74 Lnet/minecraft/class_34;method_74()I
      named getChainLength Lnet/minecraft/structure/StructurePiece;getChainLength()I
    • getOverlappingPiece

      public static StructurePiece getOverlappingPiece(List<StructurePiece> pieces, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Ljava/util/List;Lavp;)Lawg;
      intermediary method_55 Lnet/minecraft/class_34;method_55(Ljava/util/List;Lnet/minecraft/class_1251;)Lnet/minecraft/class_34;
      named getOverlappingPiece Lnet/minecraft/structure/StructurePiece;getOverlappingPiece(Ljava/util/List;Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
    • getCenterBlockPos

      public BlockPos getCenterBlockPos()
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a()Lcl;
      intermediary method_51 Lnet/minecraft/class_34;method_51()Lnet/minecraft/class_2552;
      named getCenterBlockPos Lnet/minecraft/structure/StructurePiece;getCenterBlockPos()Lnet/minecraft/util/math/BlockPos;
    • isTouchingLiquid

      protected boolean isTouchingLiquid(World world, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;)Z
      intermediary method_59 Lnet/minecraft/class_34;method_59(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;)Z
      named isTouchingLiquid Lnet/minecraft/structure/StructurePiece;isTouchingLiquid(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;)Z
    • applyXTransform

      protected int applyXTransform(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(II)I
      intermediary method_53 Lnet/minecraft/class_34;method_53(II)I
      named applyXTransform Lnet/minecraft/structure/StructurePiece;applyXTransform(II)I
    • applyYTransform

      protected int applyYTransform(int y)
      Mappings:
      Namespace Name Mixin selector
      official d Lawg;d(I)I
      intermediary method_52 Lnet/minecraft/class_34;method_52(I)I
      named applyYTransform Lnet/minecraft/structure/StructurePiece;applyYTransform(I)I
    • applyZTransform

      protected int applyZTransform(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b(II)I
      intermediary method_71 Lnet/minecraft/class_34;method_71(II)I
      named applyZTransform Lnet/minecraft/structure/StructurePiece;applyZTransform(II)I
    • setBlockState

      protected void setBlockState(World world, BlockState state, int x, int y, int z, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lard;IIILavp;)V
      intermediary method_56 Lnet/minecraft/class_34;method_56(Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)V
      named setBlockState Lnet/minecraft/structure/StructurePiece;setBlockState(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
    • getBlockAt

      protected BlockState getBlockAt(World world, int x, int y, int z, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;IIILavp;)Lard;
      intermediary method_9273 Lnet/minecraft/class_34;method_9273(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)Lnet/minecraft/class_2232;
      named getBlockAt Lnet/minecraft/structure/StructurePiece;getBlockAt(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/BlockBox;)Lnet/minecraft/block/BlockState;
    • setAir

      protected void setAir(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;IIIIII)V
      intermediary method_60 Lnet/minecraft/class_34;method_60(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIII)V
      named setAir Lnet/minecraft/structure/StructurePiece;setAir(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIII)V
    • fillWithOutline

      protected void fillWithOutline(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;IIIIIILard;Lard;Z)V
      intermediary method_62 Lnet/minecraft/class_34;method_62(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Lnet/minecraft/class_2232;Z)V
      named fillWithOutline Lnet/minecraft/structure/StructurePiece;fillWithOutline(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIIILnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Z)V
    • fillRandomized

      protected void fillRandomized(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean cantReplaceAir, Random random, StructurePiece.BlockRandomizer randomizer)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;IIIIIIZLjava/util/Random;Lawg$a;)V
      intermediary method_64 Lnet/minecraft/class_34;method_64(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIIZLjava/util/Random;Lnet/minecraft/class_34$class_35;)V
      named fillRandomized Lnet/minecraft/structure/StructurePiece;fillRandomized(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIIIZLjava/util/Random;Lnet/minecraft/structure/StructurePiece$BlockRandomizer;)V
    • fillWithOutlineUnderSeaLevel

      protected void fillWithOutlineUnderSeaLevel(World world, BlockBox box, Random random, float blockChance, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;Ljava/util/Random;FIIIIIILard;Lard;Z)V
      intermediary method_6569 Lnet/minecraft/class_34;method_6569(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;FIIIIIILnet/minecraft/class_2232;Lnet/minecraft/class_2232;Z)V
      named fillWithOutlineUnderSeaLevel Lnet/minecraft/structure/StructurePiece;fillWithOutlineUnderSeaLevel(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIIIIIILnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Z)V
    • addBlockWithRandomThreshold

      protected void addBlockWithRandomThreshold(World world, BlockBox box, Random random, float blockChance, int x, int y, int z, BlockState block)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;Ljava/util/Random;FIIILard;)V
      intermediary method_65 Lnet/minecraft/class_34;method_65(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;FIIILnet/minecraft/class_2232;)V
      named addBlockWithRandomThreshold Lnet/minecraft/structure/StructurePiece;addBlockWithRandomThreshold(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIIILnet/minecraft/block/BlockState;)V
    • fillHalfEllipsoid

      protected void fillHalfEllipsoid(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState block, boolean cantReplaceAir)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;IIIIIILard;Z)V
      intermediary method_63 Lnet/minecraft/class_34;method_63(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Z)V
      named fillHalfEllipsoid Lnet/minecraft/structure/StructurePiece;fillHalfEllipsoid(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIIILnet/minecraft/block/BlockState;Z)V
    • clearBlocksUpwards

      protected void clearBlocksUpwards(World world, int x, int y, int z, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b(Laht;IIILavp;)V
      intermediary method_73 Lnet/minecraft/class_34;method_73(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)V
      named clearBlocksUpwards Lnet/minecraft/structure/StructurePiece;clearBlocksUpwards(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/BlockBox;)V
    • fillAirAndLiquidsDownwards

      protected void fillAirAndLiquidsDownwards(World world, BlockState block, int x, int y, int z, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official b Lawg;b(Laht;Lard;IIILavp;)V
      intermediary method_72 Lnet/minecraft/class_34;method_72(Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)V
      named fillAirAndLiquidsDownwards Lnet/minecraft/structure/StructurePiece;fillAirAndLiquidsDownwards(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
    • method_11852

      protected boolean method_11852(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;Ljava/util/Random;IIILkl;)Z
      intermediary method_11852 Lnet/minecraft/class_34;method_11852(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1653;)Z
      named method_11852 Lnet/minecraft/structure/StructurePiece;method_11852(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/Identifier;)Z
    • method_11851

      protected boolean method_11851(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;Ljava/util/Random;IIILcs;Lkl;)Z
      intermediary method_11851 Lnet/minecraft/class_34;method_11851(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;Lnet/minecraft/class_1653;)Z
      named method_11851 Lnet/minecraft/structure/StructurePiece;method_11851(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;Lnet/minecraft/util/Identifier;)Z
    • placeDoor

      protected void placeDoor(World world, BlockBox box, Random random, int x, int y, int z, Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Laht;Lavp;Ljava/util/Random;IIILcs;)V
      intermediary method_67 Lnet/minecraft/class_34;method_67(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;)V
      named placeDoor Lnet/minecraft/structure/StructurePiece;placeDoor(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;)V
    • translate

      public void translate(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(III)V
      intermediary method_9272 Lnet/minecraft/class_34;method_9272(III)V
      named translate Lnet/minecraft/structure/StructurePiece;translate(III)V
    • method_11854

      @Nullable public Direction method_11854()
      Mappings:
      Namespace Name Mixin selector
      official e Lawg;e()Lcs;
      intermediary method_11854 Lnet/minecraft/class_34;method_11854()Lnet/minecraft/class_1354;
      named method_11854 Lnet/minecraft/structure/StructurePiece;method_11854()Lnet/minecraft/util/math/Direction;
    • method_11853

      public void method_11853(@Nullable Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lawg;a(Lcs;)V
      intermediary method_11853 Lnet/minecraft/class_34;method_11853(Lnet/minecraft/class_1354;)V
      named method_11853 Lnet/minecraft/structure/StructurePiece;method_11853(Lnet/minecraft/util/math/Direction;)V