Package net.minecraft.structure
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
- Mappings:
Namespace Name official bmsintermediary net/minecraft/class_34named net/minecraft/structure/StructurePiece
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBlockWithRandomThreshold(World world, BlockBox box, Random random, float blockChance, int x, int y, int z, BlockState block) protected intapplyXTransform(int x, int z) protected intapplyYTransform(int y) protected intapplyZTransform(int x, int z) protected voidclearBlocksUpwards(World world, int x, int y, int z, BlockBox box) protected abstract voiddeserialize(NbtCompound structureNbt) protected voidfillAirAndLiquidsDownwards(World world, BlockState block, int x, int y, int z, BlockBox box) protected voidfillHalfEllipsoid(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState block, boolean cantReplaceAir) voidfillOpenings(StructurePiece start, List pieces, Random random) protected voidfillWithOutline(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir) protected voidfillWithOutlineUnderSeaLevel(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) voidfromNbt(World world, NbtCompound nbt) abstract booleanprotected BlockStategetBlockAt(World world, int x, int y, int z, BlockBox box) intprotected intstatic StructurePiecegetOverlappingPiece(List pieces, BlockBox box) protected booleanisTouchingLiquid(World world, BlockBox box) protected voidmethod_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) protected booleanplaceChest(World world, BlockBox box, Random random, int x, int y, int z, List chestContent, int int2) protected booleanplaceDispenser(World world, BlockBox box, Random random, int x, int y, int z, int type, List dispensorContent, int int2) protected voidprotected abstract voidserialize(NbtCompound structureNbt) protected voidprotected voidsetBlockState(World world, BlockState state, int x, int y, int z, BlockBox box) toNbt()
-
Field Details
-
boundingBox
- Mappings:
Namespace Name Mixin selector official lLbms;l:Lbjb;intermediary field_64Lnet/minecraft/class_34;field_64:Lnet/minecraft/class_1251;named boundingBoxLnet/minecraft/structure/StructurePiece;boundingBox:Lnet/minecraft/util/math/BlockBox;
-
facing
- Mappings:
Namespace Name Mixin selector official mLbms;m:Lej;intermediary field_10226Lnet/minecraft/class_34;field_10226:Lnet/minecraft/class_1354;named facingLnet/minecraft/structure/StructurePiece;facing:Lnet/minecraft/util/math/Direction;
-
chainLength
protected int chainLength- Mappings:
Namespace Name Mixin selector official nLbms;n:Iintermediary field_66Lnet/minecraft/class_34;field_66:Inamed chainLengthLnet/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)Vintermediary <init>Lnet/minecraft/class_34;<init>(I)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(I)V
-
-
Method Details
-
toNbt
- Mappings:
Namespace Name Mixin selector official bLbms;b()Lfn;intermediary method_5529Lnet/minecraft/class_34;method_5529()Lnet/minecraft/class_322;named toNbtLnet/minecraft/structure/StructurePiece;toNbt()Lnet/minecraft/nbt/NbtCompound;
-
serialize
- Mappings:
Namespace Name Mixin selector official aLbms;a(Lfn;)Vintermediary method_5528Lnet/minecraft/class_34;method_5528(Lnet/minecraft/class_322;)Vnamed serializeLnet/minecraft/structure/StructurePiece;serialize(Lnet/minecraft/nbt/NbtCompound;)V
-
fromNbt
- Mappings:
Namespace Name Mixin selector official aLbms;a(Laqu;Lfn;)Vintermediary method_5527Lnet/minecraft/class_34;method_5527(Lnet/minecraft/class_1150;Lnet/minecraft/class_322;)Vnamed fromNbtLnet/minecraft/structure/StructurePiece;fromNbt(Lnet/minecraft/world/World;Lnet/minecraft/nbt/NbtCompound;)V
-
deserialize
- Mappings:
Namespace Name Mixin selector official bLbms;b(Lfn;)Vintermediary method_5530Lnet/minecraft/class_34;method_5530(Lnet/minecraft/class_322;)Vnamed deserializeLnet/minecraft/structure/StructurePiece;deserialize(Lnet/minecraft/nbt/NbtCompound;)V
-
fillOpenings
- Mappings:
Namespace Name Mixin selector official aLbms;a(Lbms;Ljava/util/List;Ljava/util/Random;)Vintermediary method_54Lnet/minecraft/class_34;method_54(Lnet/minecraft/class_34;Ljava/util/List;Ljava/util/Random;)Vnamed fillOpeningsLnet/minecraft/structure/StructurePiece;fillOpenings(Lnet/minecraft/structure/StructurePiece;Ljava/util/List;Ljava/util/Random;)V
-
generate
- Mappings:
Namespace Name Mixin selector official aLbms;a(Laqu;Ljava/util/Random;Lbjb;)Zintermediary method_58Lnet/minecraft/class_34;method_58(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_1251;)Znamed generateLnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;)Z
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official cLbms;c()Lbjb;intermediary method_70Lnet/minecraft/class_34;method_70()Lnet/minecraft/class_1251;named getBoundingBoxLnet/minecraft/structure/StructurePiece;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-
getChainLength
public int getChainLength()- Mappings:
Namespace Name Mixin selector official dLbms;d()Iintermediary method_74Lnet/minecraft/class_34;method_74()Inamed getChainLengthLnet/minecraft/structure/StructurePiece;getChainLength()I
-
getOverlappingPiece
- Mappings:
Namespace Name Mixin selector official aLbms;a(Ljava/util/List;Lbjb;)Lbms;intermediary method_55Lnet/minecraft/class_34;method_55(Ljava/util/List;Lnet/minecraft/class_1251;)Lnet/minecraft/class_34;named getOverlappingPieceLnet/minecraft/structure/StructurePiece;getOverlappingPiece(Ljava/util/List;Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
getCenterBlockPos
- Mappings:
Namespace Name Mixin selector official aLbms;a()Ldt;intermediary method_51Lnet/minecraft/class_34;method_51()Lnet/minecraft/class_2552;named getCenterBlockPosLnet/minecraft/structure/StructurePiece;getCenterBlockPos()Lnet/minecraft/util/math/BlockPos;
-
isTouchingLiquid
- Mappings:
Namespace Name Mixin selector official aLbms;a(Laqu;Lbjb;)Zintermediary method_59Lnet/minecraft/class_34;method_59(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;)Znamed isTouchingLiquidLnet/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 aLbms;a(II)Iintermediary method_53Lnet/minecraft/class_34;method_53(II)Inamed applyXTransformLnet/minecraft/structure/StructurePiece;applyXTransform(II)I
-
applyYTransform
protected int applyYTransform(int y) - Mappings:
Namespace Name Mixin selector official dLbms;d(I)Iintermediary method_52Lnet/minecraft/class_34;method_52(I)Inamed applyYTransformLnet/minecraft/structure/StructurePiece;applyYTransform(I)I
-
applyZTransform
protected int applyZTransform(int x, int z) - Mappings:
Namespace Name Mixin selector official bLbms;b(II)Iintermediary method_71Lnet/minecraft/class_34;method_71(II)Inamed applyZTransformLnet/minecraft/structure/StructurePiece;applyZTransform(II)I
-
getData
- Mappings:
Namespace Name Mixin selector official aLbms;a(Latr;I)Iintermediary method_6570Lnet/minecraft/class_34;method_6570(Lnet/minecraft/class_197;I)Inamed getDataLnet/minecraft/structure/StructurePiece;getData(Lnet/minecraft/block/Block;I)I
-
setBlockState
- Mappings:
Namespace Name Mixin selector official aLbms;a(Laqu;Lbec;IIILbjb;)Vintermediary method_56Lnet/minecraft/class_34;method_56(Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)Vnamed setBlockStateLnet/minecraft/structure/StructurePiece;setBlockState(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
-
getBlockAt
- Mappings:
Namespace Name Mixin selector official aLbms;a(Laqu;IIILbjb;)Lbec;intermediary method_9273Lnet/minecraft/class_34;method_9273(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)Lnet/minecraft/class_2232;named getBlockAtLnet/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 aLbms;a(Laqu;Lbjb;IIIIII)Vintermediary method_60Lnet/minecraft/class_34;method_60(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIII)Vnamed setAirLnet/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 aLbms;a(Laqu;Lbjb;IIIIIILbec;Lbec;Z)Vintermediary method_62Lnet/minecraft/class_34;method_62(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Lnet/minecraft/class_2232;Z)Vnamed fillWithOutlineLnet/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 aLbms;a(Laqu;Lbjb;IIIIIIZLjava/util/Random;Lbmu;)Vintermediary method_64Lnet/minecraft/class_34;method_64(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIIZLjava/util/Random;Lnet/minecraft/class_35;)Vnamed method_64Lnet/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 aLbms;a(Laqu;Lbjb;Ljava/util/Random;FIIIIIILbec;Lbec;Z)Vintermediary method_6569Lnet/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)Vnamed fillWithOutlineUnderSeaLevelLnet/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 aLbms;a(Laqu;Lbjb;Ljava/util/Random;FIIILbec;)Vintermediary method_65Lnet/minecraft/class_34;method_65(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;FIIILnet/minecraft/class_2232;)Vnamed addBlockWithRandomThresholdLnet/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 aLbms;a(Laqu;Lbjb;IIIIIILbec;Z)Vintermediary method_63Lnet/minecraft/class_34;method_63(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIILnet/minecraft/class_2232;Z)Vnamed fillHalfEllipsoidLnet/minecraft/structure/StructurePiece;fillHalfEllipsoid(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;IIIIIILnet/minecraft/block/BlockState;Z)V
-
clearBlocksUpwards
- Mappings:
Namespace Name Mixin selector official bLbms;b(Laqu;IIILbjb;)Vintermediary method_73Lnet/minecraft/class_34;method_73(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)Vnamed clearBlocksUpwardsLnet/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 bLbms;b(Laqu;Lbec;IIILbjb;)Vintermediary method_72Lnet/minecraft/class_34;method_72(Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;IIILnet/minecraft/class_1251;)Vnamed fillAirAndLiquidsDownwardsLnet/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 aLbms;a(Laqu;Lbjb;Ljava/util/Random;IIILjava/util/List;I)Zintermediary method_9275Lnet/minecraft/class_34;method_9275(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILjava/util/List;I)Znamed placeChestLnet/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 aLbms;a(Laqu;Lbjb;Ljava/util/Random;IIIILjava/util/List;I)Zintermediary method_9274Lnet/minecraft/class_34;method_9274(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIIILjava/util/List;I)Znamed placeDispenserLnet/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 aLbms;a(Laqu;Lbjb;Ljava/util/Random;IIILej;)Vintermediary method_67Lnet/minecraft/class_34;method_67(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;)Vnamed placeDoorLnet/minecraft/structure/StructurePiece;placeDoor(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;)V
-