Class StructurePiece

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

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

    • boundingBox

      protected BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official l Lbbx;l:Lbbg;
      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 Lbbx;a:Lfa;
      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 Lbbx;b:Lary;
      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 Lbbx;c:Latm;
      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 Lbbx;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> Lbbx;<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 Lbbx;c()Lfy;
      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 Lbbx;a(Lfy;)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 Lbbx;a(Lamu;Lfy;)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
    • method_5530

      protected abstract void method_5530(NbtCompound nbtCompound, class_2763 class_2763)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lfy;Lbcg;)V
      intermediary method_5530 Lnet/minecraft/class_34;method_5530(Lnet/minecraft/class_322;Lnet/minecraft/class_2763;)V
      named method_5530 Lnet/minecraft/structure/StructurePiece;method_5530(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/class_2763;)V
    • fillOpenings

      public void fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lbbx;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 Lbbx;a(Lamu;Ljava/util/Random;Lbbg;)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 d Lbbx;d()Lbbg;
      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 Lbbx;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 Lbbx;a(Ljava/util/List;Lbbg;)Lbbx;
      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;
    • isTouchingLiquid

      protected boolean isTouchingLiquid(World world, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lamu;Lbbg;)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 Lbbx;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 Lbbx;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 Lbbx;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 Lbbx;a(Lamu;Lawt;IIILbbg;)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 Lbbx;a(Lamu;IIILbbg;)Lawt;
      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;
    • method_13378

      protected int method_13378(World world, int int2, int int3, int int4, BlockBox blockBox)
      Mappings:
      Namespace Name Mixin selector
      official b Lbbx;b(Lamu;IIILbbg;)I
      intermediary method_13378 Lnet/minecraft/class_34;method_13378(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)I
      named method_13378 Lnet/minecraft/structure/StructurePiece;method_13378(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/BlockBox;)I
    • 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 Lbbx;a(Lamu;Lbbg;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 Lbbx;a(Lamu;Lbbg;IIIIIILawt;Lawt;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 Lbbx;a(Lamu;Lbbg;IIIIIIZLjava/util/Random;Lbbx$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
    • method_6569

      protected void method_6569(World world, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState, BlockState blockState2, boolean bool, int int8)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lamu;Lbbg;Ljava/util/Random;FIIIIIILawt;Lawt;ZI)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;ZI)V
      named method_6569 Lnet/minecraft/structure/StructurePiece;method_6569(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIIIIIILnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;ZI)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 Lbbx;a(Lamu;Lbbg;Ljava/util/Random;FIIILawt;)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 Lbbx;a(Lamu;Lbbg;IIIIIILawt;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 c Lbbx;c(Lamu;IIILbbg;)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 Lbbx;b(Lamu;Lawt;IIILbbg;)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 Lbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILnf;)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_13775

      protected boolean method_13775(World world, BlockBox blockBox, Random random, BlockPos blockPos, Identifier identifier, @Nullable BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lamu;Lbbg;Ljava/util/Random;Let;Lnf;Lawt;)Z
      intermediary method_13775 Lnet/minecraft/class_34;method_13775(Lnet/minecraft/class_1150;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/World;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(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILfa;Lnf;)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
    • method_13377

      protected void method_13377(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, DoorBlock doorBlock)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILfa;Laqa;)V
      intermediary method_13377 Lnet/minecraft/class_34;method_13377(Lnet/minecraft/class_1150;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/World;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 Lbbx;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 Lbbx;f()Lfa;
      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 Lbbx;a(Lfa;)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