Class StructurePiece

java.lang.Object
net.minecraft.structure.StructurePiece
Direct Known Subclasses:
class_1254, class_1255, class_1256, class_1257, class_1274, class_2279, class_31, class_53, class_8

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

    • boundingBox

      protected BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official l Lbms;l:Lbjb;
      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

      protected Direction facing
      Mappings:
      Namespace Name Mixin selector
      official m Lbms;m:Lej;
      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;
    • chainLength

      protected int chainLength
      Mappings:
      Namespace Name Mixin selector
      official n Lbms;n: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> Lbms;<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 NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official b Lbms;b()Lfn;
      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 Lbms;a(Lfn;)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 Lbms;a(Laqu;Lfn;)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 Lbms;b(Lfn;)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 pieces, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Lbms;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 Lbms;a(Laqu;Ljava/util/Random;Lbjb;)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 Lbms;c()Lbjb;
      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 Lbms;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 pieces, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Ljava/util/List;Lbjb;)Lbms;
      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 Lbms;a()Ldt;
      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 Lbms;a(Laqu;Lbjb;)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 Lbms;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 Lbms;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 Lbms;b(II)I
      intermediary method_71 Lnet/minecraft/class_34;method_71(II)I
      named applyZTransform Lnet/minecraft/structure/StructurePiece;applyZTransform(II)I
    • getData

      protected int getData(Block block, int type)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Latr;I)I
      intermediary method_6570 Lnet/minecraft/class_34;method_6570(Lnet/minecraft/class_197;I)I
      named getData Lnet/minecraft/structure/StructurePiece;getData(Lnet/minecraft/block/Block;I)I
    • setBlockState

      protected void setBlockState(World world, BlockState state, int x, int y, int z, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Laqu;Lbec;IIILbjb;)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 Lbms;a(Laqu;IIILbjb;)Lbec;
      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 Lbms;a(Laqu;Lbjb;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 Lbms;a(Laqu;Lbjb;IIIIIILbec;Lbec;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
    • method_64

      protected void method_64(World world, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, boolean bool, Random random, class_35 class_35)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Laqu;Lbjb;IIIIIIZLjava/util/Random;Lbmu;)V
      intermediary method_64 Lnet/minecraft/class_34;method_64(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIIZLjava/util/Random;Lnet/minecraft/class_35;)V
      named method_64 Lnet/minecraft/structure/StructurePiece;method_64(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIIIZLjava/util/Random;Lnet/minecraft/structure/class_35;)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 Lbms;a(Laqu;Lbjb;Ljava/util/Random;FIIIIIILbec;Lbec;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 Lbms;a(Laqu;Lbjb;Ljava/util/Random;FIIILbec;)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 Lbms;a(Laqu;Lbjb;IIIIIILbec;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 Lbms;b(Laqu;IIILbjb;)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 Lbms;b(Laqu;Lbec;IIILbjb;)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
    • placeChest

      protected boolean placeChest(World world, BlockBox box, Random random, int x, int y, int z, List chestContent, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Laqu;Lbjb;Ljava/util/Random;IIILjava/util/List;I)Z
      intermediary method_9275 Lnet/minecraft/class_34;method_9275(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILjava/util/List;I)Z
      named placeChest Lnet/minecraft/structure/StructurePiece;placeChest(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILjava/util/List;I)Z
    • placeDispenser

      protected boolean placeDispenser(World world, BlockBox box, Random random, int x, int y, int z, int type, List dispensorContent, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbms;a(Laqu;Lbjb;Ljava/util/Random;IIIILjava/util/List;I)Z
      intermediary method_9274 Lnet/minecraft/class_34;method_9274(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIIILjava/util/List;I)Z
      named placeDispenser Lnet/minecraft/structure/StructurePiece;placeDispenser(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIIILjava/util/List;I)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 Lbms;a(Laqu;Lbjb;Ljava/util/Random;IIILej;)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