Package net.minecraft.structure
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
- Mappings:
Namespace Name official bbxintermediary net/minecraft/class_34named net/minecraft/structure/StructurePiece
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockBoxprotected intprivate Directionprivate BlockMirrorprivate BlockRotation -
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 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<StructurePiece> pieces, Random random) protected voidfillRandomized(World world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean cantReplaceAir, Random random, StructurePiece.BlockRandomizer randomizer) protected voidfillWithOutline(World world, BlockBox box, 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) intstatic StructurePiecegetOverlappingPiece(List<StructurePiece> pieces, BlockBox box) protected booleanisTouchingLiquid(World world, BlockBox box) protected booleanmethod_11851(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, Identifier identifier) protected booleanmethod_11852(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Identifier identifier) voidmethod_11853(Direction direction) protected voidmethod_13377(World world, BlockBox blockBox, Random random, int int2, int int3, int int4, Direction direction, DoorBlock doorBlock) protected intmethod_13378(World world, int int2, int int3, int int4, BlockBox blockBox) protected booleanmethod_13775(World world, BlockBox blockBox, Random random, BlockPos blockPos, Identifier identifier, BlockState blockState) protected abstract voidmethod_5530(NbtCompound nbtCompound, class_2763 class_2763) protected voidmethod_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) protected abstract voidserialize(NbtCompound structureNbt) protected voidprotected voidsetBlockState(World world, BlockState state, int x, int y, int z, BlockBox box) final NbtCompoundtoNbt()voidtranslate(int x, int y, int z)
-
Field Details
-
boundingBox
- Mappings:
Namespace Name Mixin selector official lLbbx;l:Lbbg;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 aLbbx;a:Lfa;intermediary field_10226Lnet/minecraft/class_34;field_10226:Lnet/minecraft/class_1354;named facingLnet/minecraft/structure/StructurePiece;facing:Lnet/minecraft/util/math/Direction;
-
field_13013
- Mappings:
Namespace Name Mixin selector official bLbbx;b:Lary;intermediary field_13013Lnet/minecraft/class_34;field_13013:Lnet/minecraft/class_2727;named field_13013Lnet/minecraft/structure/StructurePiece;field_13013:Lnet/minecraft/util/BlockMirror;
-
field_13014
- Mappings:
Namespace Name Mixin selector official cLbbx;c:Latm;intermediary field_13014Lnet/minecraft/class_34;field_13014:Lnet/minecraft/class_2734;named field_13014Lnet/minecraft/structure/StructurePiece;field_13014:Lnet/minecraft/util/BlockRotation;
-
chainLength
protected int chainLength- Mappings:
Namespace Name Mixin selector official mLbbx;m: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>Lbbx;<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 cLbbx;c()Lfy;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 aLbbx;a(Lfy;)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 aLbbx;a(Lamu;Lfy;)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
-
method_5530
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Lfy;Lbcg;)Vintermediary method_5530Lnet/minecraft/class_34;method_5530(Lnet/minecraft/class_322;Lnet/minecraft/class_2763;)Vnamed method_5530Lnet/minecraft/structure/StructurePiece;method_5530(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/class_2763;)V
-
fillOpenings
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Lbbx;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 aLbbx;a(Lamu;Ljava/util/Random;Lbbg;)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 dLbbx;d()Lbbg;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 eLbbx;e()Iintermediary method_74Lnet/minecraft/class_34;method_74()Inamed getChainLengthLnet/minecraft/structure/StructurePiece;getChainLength()I
-
getOverlappingPiece
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Ljava/util/List;Lbbg;)Lbbx;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;
-
isTouchingLiquid
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Lamu;Lbbg;)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 aLbbx;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 dLbbx;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 bLbbx;b(II)Iintermediary method_71Lnet/minecraft/class_34;method_71(II)Inamed applyZTransformLnet/minecraft/structure/StructurePiece;applyZTransform(II)I
-
setBlockState
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Lamu;Lawt;IIILbbg;)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 aLbbx;a(Lamu;IIILbbg;)Lawt;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;
-
method_13378
- Mappings:
Namespace Name Mixin selector official bLbbx;b(Lamu;IIILbbg;)Iintermediary method_13378Lnet/minecraft/class_34;method_13378(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1251;)Inamed method_13378Lnet/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 aLbbx;a(Lamu;Lbbg;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 aLbbx;a(Lamu;Lbbg;IIIIIILawt;Lawt;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
-
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 aLbbx;a(Lamu;Lbbg;IIIIIIZLjava/util/Random;Lbbx$a;)Vintermediary method_64Lnet/minecraft/class_34;method_64(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;IIIIIIZLjava/util/Random;Lnet/minecraft/class_34$class_35;)Vnamed fillRandomizedLnet/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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;FIIIIIILawt;Lawt;ZI)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;ZI)Vnamed method_6569Lnet/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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;FIIILawt;)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 aLbbx;a(Lamu;Lbbg;IIIIIILawt;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 cLbbx;c(Lamu;IIILbbg;)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 bLbbx;b(Lamu;Lawt;IIILbbg;)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
-
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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILnf;)Zintermediary method_11852Lnet/minecraft/class_34;method_11852(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1653;)Znamed method_11852Lnet/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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;Let;Lnf;Lawt;)Zintermediary method_13775Lnet/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;)Znamed method_13775Lnet/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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILfa;Lnf;)Zintermediary method_11851Lnet/minecraft/class_34;method_11851(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;Lnet/minecraft/class_1653;)Znamed method_11851Lnet/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 aLbbx;a(Lamu;Lbbg;Ljava/util/Random;IIILfa;Laqa;)Vintermediary method_13377Lnet/minecraft/class_34;method_13377(Lnet/minecraft/class_1150;Lnet/minecraft/class_1251;Ljava/util/Random;IIILnet/minecraft/class_1354;Lnet/minecraft/class_129;)Vnamed method_13377Lnet/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 aLbbx;a(III)Vintermediary method_9272Lnet/minecraft/class_34;method_9272(III)Vnamed translateLnet/minecraft/structure/StructurePiece;translate(III)V
-
method_11854
- Mappings:
Namespace Name Mixin selector official fLbbx;f()Lfa;intermediary method_11854Lnet/minecraft/class_34;method_11854()Lnet/minecraft/class_1354;named method_11854Lnet/minecraft/structure/StructurePiece;method_11854()Lnet/minecraft/util/math/Direction;
-
method_11853
- Mappings:
Namespace Name Mixin selector official aLbbx;a(Lfa;)Vintermediary method_11853Lnet/minecraft/class_34;method_11853(Lnet/minecraft/class_1354;)Vnamed method_11853Lnet/minecraft/structure/StructurePiece;method_11853(Lnet/minecraft/util/math/Direction;)V
-