Package net.minecraft.structure
Class ShiftableStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.ShiftableStructurePiece
- Direct Known Subclasses:
DesertTempleGenerator
,JungleTempleGenerator
,SwampHutGenerator
- Mappings:
Namespace Name official dvg
intermediary net/minecraft/class_3418
named net/minecraft/structure/ShiftableStructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int
protected int
protected final int
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShiftableStructurePiece
(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) protected
ShiftableStructurePiece
(StructurePieceType type, NbtCompound nbt) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
adjustToAverageHeight
(WorldAccess world, BlockBox boundingBox, int deltaY) protected boolean
adjustToMinHeight
(WorldAccess world, int yOffset) protected void
writeNbt
(StructureContext context, NbtCompound nbt) Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, boundingBox, canAddBlock, canReplace, createBox, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, firstIntersecting, generate, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getRotation, getType, intersectsChunk, isUnderSeaLevel, offsetPos, orientateChest, setChainLength, setOrientation, toNbt, translate
-
Field Details
-
width
protected final int width- Mappings:
Namespace Name Mixin selector official a
Ldvg;a:I
intermediary field_15244
Lnet/minecraft/class_3418;field_15244:I
named width
Lnet/minecraft/structure/ShiftableStructurePiece;width:I
-
height
protected final int height- Mappings:
Namespace Name Mixin selector official b
Ldvg;b:I
intermediary field_15243
Lnet/minecraft/class_3418;field_15243:I
named height
Lnet/minecraft/structure/ShiftableStructurePiece;height:I
-
depth
protected final int depth- Mappings:
Namespace Name Mixin selector official c
Ldvg;c:I
intermediary field_15242
Lnet/minecraft/class_3418;field_15242:I
named depth
Lnet/minecraft/structure/ShiftableStructurePiece;depth:I
-
hPos
protected int hPos- Mappings:
Namespace Name Mixin selector official d
Ldvg;d:I
intermediary field_15241
Lnet/minecraft/class_3418;field_15241:I
named hPos
Lnet/minecraft/structure/ShiftableStructurePiece;hPos:I
-
-
Constructor Details
-
ShiftableStructurePiece
protected ShiftableStructurePiece(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) - Mappings:
Namespace Name Mixin selector official <init>
Ldvg;<init>(Ldvz;IIIIIILha;)V
intermediary <init>
Lnet/minecraft/class_3418;<init>(Lnet/minecraft/class_3773;IIIIIILnet/minecraft/class_2350;)V
named <init>
Lnet/minecraft/structure/ShiftableStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;IIIIIILnet/minecraft/util/math/Direction;)V
-
ShiftableStructurePiece
- Mappings:
Namespace Name Mixin selector official <init>
Ldvm;<init>(Ldvz;Lqw;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)V
named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;)V
-
-
Method Details
-
writeNbt
- Specified by:
writeNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldvm;a(Ldvy;Lqw;)V
intermediary method_14943
Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)V
-
adjustToAverageHeight
- Mappings:
Namespace Name Mixin selector official a
Ldvg;a(Lcpw;Ldva;I)Z
intermediary method_14839
Lnet/minecraft/class_3418;method_14839(Lnet/minecraft/class_1936;Lnet/minecraft/class_3341;I)Z
named adjustToAverageHeight
Lnet/minecraft/structure/ShiftableStructurePiece;adjustToAverageHeight(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;I)Z
-
adjustToMinHeight
- Mappings:
Namespace Name Mixin selector official a
Ldvg;a(Lcpw;I)Z
intermediary method_38462
Lnet/minecraft/class_3418;method_38462(Lnet/minecraft/class_1936;I)Z
named adjustToMinHeight
Lnet/minecraft/structure/ShiftableStructurePiece;adjustToMinHeight(Lnet/minecraft/world/WorldAccess;I)Z
-