Class StructurePiece

java.lang.Object
net.minecraft.structure.StructurePiece
Direct Known Subclasses:
class_2762, class_8, MineshaftPieces.class_3015, NetherFortressPieces.AbstractPiece, OceanMonumentPieces.AbstractPiece, StrongholdPieces.AbstractPiece, TemplePieces.class_3970, VillagePieces.AbstractPiece

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

    • field_19406

      protected static final BlockState field_19406
      Mappings:
      Namespace Name Mixin selector
      official m Lbxb;m:Lblc;
      intermediary field_19406 Lnet/minecraft/class_34;field_19406:Lnet/minecraft/class_2232;
      named field_19406 Lnet/minecraft/structure/StructurePiece;field_19406:Lnet/minecraft/block/BlockState;
    • field_19405

      private static final Set<Block> field_19405
      Mappings:
      Namespace Name Mixin selector
      official d Lbxb;d:Ljava/util/Set;
      intermediary field_19405 Lnet/minecraft/class_34;field_19405:Ljava/util/Set;
      named field_19405 Lnet/minecraft/structure/StructurePiece;field_19405:Ljava/util/Set;
    • boundingBox

      protected BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official n Lbxb;n:Lbwf;
      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 Lbxb;a:Leq;
      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 Lbxb;b:Lbfz;
      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 Lbxb;c:Lbhb;
      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 o Lbxb;o: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> Lbxb;<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 c Lbxb;c()Lgy;
      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 Lbxb;a(Lgy;)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
    • method_5527

      public void method_5527(IWorld iWorld, NbtCompound nbtCompound)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lgy;)V
      intermediary method_5527 Lnet/minecraft/class_34;method_5527(Lnet/minecraft/class_3598;Lnet/minecraft/class_322;)V
      named method_5527 Lnet/minecraft/structure/StructurePiece;method_5527(Lnet/minecraft/world/IWorld;Lnet/minecraft/nbt/NbtCompound;)V
    • method_5530

      protected abstract void method_5530(NbtCompound nbtCompound, class_3998 class_3998)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Lgy;Lbxm;)V
      intermediary method_5530 Lnet/minecraft/class_34;method_5530(Lnet/minecraft/class_322;Lnet/minecraft/class_3998;)V
      named method_5530 Lnet/minecraft/structure/StructurePiece;method_5530(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/class_3998;)V
    • fillOpenings

      public void fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Lbxb;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
    • method_58

      public abstract boolean method_58(IWorld iWorld, Random random, BlockBox blockBox, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Ljava/util/Random;Lbwf;Laxm;)Z
      intermediary method_58 Lnet/minecraft/class_34;method_58(Lnet/minecraft/class_3598;Ljava/util/Random;Lnet/minecraft/class_1251;Lnet/minecraft/class_1146;)Z
      named method_58 Lnet/minecraft/structure/StructurePiece;method_58(Lnet/minecraft/world/IWorld;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;)Z
    • getBoundingBox

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official d Lbxb;d()Lbwf;
      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 e Lbxb;e()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 Lbxb;a(Ljava/util/List;Lbwf;)Lbxb;
      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;
    • method_17651

      protected boolean method_17651(BlockView blockView, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxk;Lbwf;)Z
      intermediary method_17651 Lnet/minecraft/class_34;method_17651(Lnet/minecraft/class_1158;Lnet/minecraft/class_1251;)Z
      named method_17651 Lnet/minecraft/structure/StructurePiece;method_17651(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockBox;)Z
    • applyXTransform

      protected int applyXTransform(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;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 Lbxb;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 Lbxb;b(II)I
      intermediary method_71 Lnet/minecraft/class_34;method_71(II)I
      named applyZTransform Lnet/minecraft/structure/StructurePiece;applyZTransform(II)I
    • method_56

      protected void method_56(IWorld iWorld, BlockState blockState, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lblc;IIILbwf;)V
      intermediary method_56 Lnet/minecraft/class_34;method_56(Lnet/minecraft/class_3598;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)V
      named method_56 Lnet/minecraft/structure/StructurePiece;method_56(Lnet/minecraft/world/IWorld;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
    • method_9273

      protected BlockState method_9273(BlockView blockView, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxk;IIILbwf;)Lblc;
      intermediary method_9273 Lnet/minecraft/class_34;method_9273(Lnet/minecraft/class_1158;IIILnet/minecraft/class_1251;)Lnet/minecraft/class_2232;
      named method_9273 Lnet/minecraft/structure/StructurePiece;method_9273(Lnet/minecraft/world/BlockView;IIILnet/minecraft/util/math/BlockBox;)Lnet/minecraft/block/BlockState;
    • method_17657

      protected boolean method_17657(RenderBlockView renderBlockView, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Layc;IIILbwf;)Z
      intermediary method_17657 Lnet/minecraft/class_34;method_17657(Lnet/minecraft/class_3599;IIILnet/minecraft/class_1251;)Z
      named method_17657 Lnet/minecraft/structure/StructurePiece;method_17657(Lnet/minecraft/world/RenderBlockView;IIILnet/minecraft/util/math/BlockBox;)Z
    • method_60

      protected void method_60(IWorld iWorld, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7)
      Mappings:
      Namespace Name Mixin selector
      official b Lbxb;b(Laxz;Lbwf;IIIIII)V
      intermediary method_60 Lnet/minecraft/class_34;method_60(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;IIIIII)V
      named method_60 Lnet/minecraft/structure/StructurePiece;method_60(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;IIIIII)V
    • method_17653

      protected void method_17653(IWorld iWorld, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState, BlockState blockState2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;IIIIIILblc;Lblc;Z)V
      intermediary method_17653 Lnet/minecraft/class_34;method_17653(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Lnet/minecraft/class_2232;Z)V
      named method_17653 Lnet/minecraft/structure/StructurePiece;method_17653(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;IIIIIILnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Z)V
    • method_17655

      protected void method_17655(IWorld iWorld, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, boolean bool, Random random, StructurePiece.BlockRandomizer blockRandomizer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;IIIIIIZLjava/util/Random;Lbxb$a;)V
      intermediary method_17655 Lnet/minecraft/class_34;method_17655(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;IIIIIIZLjava/util/Random;Lnet/minecraft/class_34$class_35;)V
      named method_17655 Lnet/minecraft/structure/StructurePiece;method_17655(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;IIIIIIZLjava/util/Random;Lnet/minecraft/structure/StructurePiece$BlockRandomizer;)V
    • method_17656

      protected void method_17656(IWorld iWorld, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState, BlockState blockState2, boolean bool, boolean bool2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;FIIIIIILblc;Lblc;ZZ)V
      intermediary method_17656 Lnet/minecraft/class_34;method_17656(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;Ljava/util/Random;FIIIIIILnet/minecraft/class_2232;Lnet/minecraft/class_2232;ZZ)V
      named method_17656 Lnet/minecraft/structure/StructurePiece;method_17656(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIIIIIILnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;ZZ)V
    • method_65

      protected void method_65(IWorld iWorld, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;FIIILblc;)V
      intermediary method_65 Lnet/minecraft/class_34;method_65(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;Ljava/util/Random;FIIILnet/minecraft/class_2232;)V
      named method_65 Lnet/minecraft/structure/StructurePiece;method_65(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIIILnet/minecraft/block/BlockState;)V
    • method_17654

      protected void method_17654(IWorld iWorld, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;IIIIIILblc;Z)V
      intermediary method_17654 Lnet/minecraft/class_34;method_17654(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Z)V
      named method_17654 Lnet/minecraft/structure/StructurePiece;method_17654(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;IIIIIILnet/minecraft/block/BlockState;Z)V
    • method_73

      protected void method_73(IWorld iWorld, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;IIILbwf;)V
      intermediary method_73 Lnet/minecraft/class_34;method_73(Lnet/minecraft/class_3598;IIILnet/minecraft/class_1251;)V
      named method_73 Lnet/minecraft/structure/StructurePiece;method_73(Lnet/minecraft/world/IWorld;IIILnet/minecraft/util/math/BlockBox;)V
    • method_72

      protected void method_72(IWorld iWorld, BlockState blockState, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official b Lbxb;b(Laxz;Lblc;IIILbwf;)V
      intermediary method_72 Lnet/minecraft/class_34;method_72(Lnet/minecraft/class_3598;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)V
      named method_72 Lnet/minecraft/structure/StructurePiece;method_72(Lnet/minecraft/world/IWorld;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
    • method_11852

      protected boolean method_11852(IWorld iWorld, BlockBox blockBox, Random random, int int2, int int3, int int4, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;IIILpc;)Z
      intermediary method_11852 Lnet/minecraft/class_34;method_11852(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1653;)Z
      named method_11852 Lnet/minecraft/structure/StructurePiece;method_11852(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/Identifier;)Z
    • method_17652

      public static BlockState method_17652(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxk;Lel;Lblc;)Lblc;
      intermediary method_17652 Lnet/minecraft/class_34;method_17652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_17652 Lnet/minecraft/structure/StructurePiece;method_17652(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • method_13775

      protected boolean method_13775(IWorld iWorld, BlockBox blockBox, Random random, BlockPos blockPos, Identifier identifier, @Nullable BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;Lel;Lpc;Lblc;)Z
      intermediary method_13775 Lnet/minecraft/class_34;method_13775(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_1653;Lnet/minecraft/class_2232;)Z
      named method_13775 Lnet/minecraft/structure/StructurePiece;method_13775(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Identifier;Lnet/minecraft/block/BlockState;)Z
    • method_11851

      protected boolean method_11851(IWorld iWorld, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;IIILeq;Lpc;)Z
      intermediary method_11851 Lnet/minecraft/class_34;method_11851(Lnet/minecraft/class_3598;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/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;Lnet/minecraft/util/Identifier;)Z
    • method_13377

      protected void method_13377(IWorld iWorld, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, DoorBlock doorBlock)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;a(Laxz;Lbwf;Ljava/util/Random;IIILeq;Lbed;)V
      intermediary method_13377 Lnet/minecraft/class_34;method_13377(Lnet/minecraft/class_3598;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;Lnet/minecraft/class_129;)V
      named method_13377 Lnet/minecraft/structure/StructurePiece;method_13377(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;Lnet/minecraft/block/DoorBlock;)V
    • translate

      public void translate(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxb;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 f Lbxb;f()Leq;
      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 Lbxb;a(Leq;)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