Package net.minecraft.structure
Class StructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
- Direct Known Subclasses:
class_2762,MineshaftPieces.MineshaftCorridor,MineshaftPieces.MineshaftCrossing,MineshaftPieces.MineshaftRoom,MineshaftPieces.MineshaftStairs,NetherFortressPieces.AbstractPiece,OceanMonumentPieces.AbstractPiece,StrongholdPieces.AbstractPiece,TemplePieces.AbstractPiece,VillagePieces.AbstractPiece
- Mappings:
Namespace Name official awgintermediary 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 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<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) 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) 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 voidprotected 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 lLawg;l:Lavp;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 aLawg;a:Lcs;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 bLawg;b:Lamr;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 cLawg;c:Laoe;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 mLawg;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>Lawg;<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 bLawg;b()Ldq;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 aLawg;a(Ldq;)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 aLawg;a(Laht;Ldq;)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 bLawg;b(Ldq;)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 aLawg;a(Lawg;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 aLawg;a(Laht;Ljava/util/Random;Lavp;)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 cLawg;c()Lavp;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 dLawg;d()Iintermediary method_74Lnet/minecraft/class_34;method_74()Inamed getChainLengthLnet/minecraft/structure/StructurePiece;getChainLength()I
-
getOverlappingPiece
- Mappings:
Namespace Name Mixin selector official aLawg;a(Ljava/util/List;Lavp;)Lawg;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 aLawg;a()Lcl;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 aLawg;a(Laht;Lavp;)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 aLawg;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 dLawg;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 bLawg;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 aLawg;a(Laht;Lard;IIILavp;)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 aLawg;a(Laht;IIILavp;)Lard;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 aLawg;a(Laht;Lavp;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 aLawg;a(Laht;Lavp;IIIIIILard;Lard;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 aLawg;a(Laht;Lavp;IIIIIIZLjava/util/Random;Lawg$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
-
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 aLawg;a(Laht;Lavp;Ljava/util/Random;FIIIIIILard;Lard;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 aLawg;a(Laht;Lavp;Ljava/util/Random;FIIILard;)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 aLawg;a(Laht;Lavp;IIIIIILard;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 bLawg;b(Laht;IIILavp;)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 bLawg;b(Laht;Lard;IIILavp;)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 aLawg;a(Laht;Lavp;Ljava/util/Random;IIILkl;)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_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 aLawg;a(Laht;Lavp;Ljava/util/Random;IIILcs;Lkl;)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
-
placeDoor
protected void placeDoor(World world, BlockBox box, Random random, int x, int y, int z, Direction facing) - Mappings:
Namespace Name Mixin selector official aLawg;a(Laht;Lavp;Ljava/util/Random;IIILcs;)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
-
translate
public void translate(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official aLawg;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 eLawg;e()Lcs;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 aLawg;a(Lcs;)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
-