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 dkcintermediary net/minecraft/class_3418named net/minecraft/structure/ShiftableStructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected intprotected final intFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShiftableStructurePiece(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) protectedShiftableStructurePiece(StructurePieceType type, NbtCompound nbt) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanadjustToAverageHeight(WorldAccess world, BlockBox boundingBox, int deltaY) protected booleanadjustToMinHeight(WorldAccess world, int int2) protected voidwriteNbt(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 aLdkc;a:Iintermediary field_15244Lnet/minecraft/class_3418;field_15244:Inamed widthLnet/minecraft/structure/ShiftableStructurePiece;width:I
-
height
protected final int height- Mappings:
Namespace Name Mixin selector official bLdkc;b:Iintermediary field_15243Lnet/minecraft/class_3418;field_15243:Inamed heightLnet/minecraft/structure/ShiftableStructurePiece;height:I
-
depth
protected final int depth- Mappings:
Namespace Name Mixin selector official cLdkc;c:Iintermediary field_15242Lnet/minecraft/class_3418;field_15242:Inamed depthLnet/minecraft/structure/ShiftableStructurePiece;depth:I
-
hPos
protected int hPos- Mappings:
Namespace Name Mixin selector official dLdkc;d:Iintermediary field_15241Lnet/minecraft/class_3418;field_15241:Inamed hPosLnet/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>Ldkc;<init>(Ldkv;IIIIIILgy;)Vintermediary <init>Lnet/minecraft/class_3418;<init>(Lnet/minecraft/class_3773;IIIIIILnet/minecraft/class_2350;)Vnamed <init>Lnet/minecraft/structure/ShiftableStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;IIIIIILnet/minecraft/util/math/Direction;)V
-
ShiftableStructurePiece
- Mappings:
Namespace Name Mixin selector official <init>Ldki;<init>(Ldkv;Lpj;)Vintermediary <init>Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;)V
-
-
Method Details
-
writeNbt
- Specified by:
writeNbtin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLdki;a(Ldku;Lpj;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)V
-
adjustToAverageHeight
- Mappings:
Namespace Name Mixin selector official aLdkc;a(Lcgb;Ldjw;I)Zintermediary method_14839Lnet/minecraft/class_3418;method_14839(Lnet/minecraft/class_1936;Lnet/minecraft/class_3341;I)Znamed adjustToAverageHeightLnet/minecraft/structure/ShiftableStructurePiece;adjustToAverageHeight(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;I)Z
-
adjustToMinHeight
- Mappings:
Namespace Name Mixin selector official aLdkc;a(Lcgb;I)Zintermediary method_38462Lnet/minecraft/class_3418;method_38462(Lnet/minecraft/class_1936;I)Znamed adjustToMinHeightLnet/minecraft/structure/ShiftableStructurePiece;adjustToMinHeight(Lnet/minecraft/world/WorldAccess;I)Z
-