Package net.minecraft.structure
Class StructurePieceWithDimensions
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StructurePieceWithDimensions
- Direct Known Subclasses:
DesertTempleGenerator,JungleTempleGenerator,SwampHutGenerator
public abstract class StructurePieceWithDimensions extends StructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description protected intdepthprotected intheightprotected inthPosprotected intwidthFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Modifier Constructor Description protectedStructurePieceWithDimensions(StructurePieceType type, Random random, int x, int y, int z, int width, int height, int depth)protectedStructurePieceWithDimensions(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected booleanmethod_14839(WorldAccess world, BlockBox boundingBox, int int2)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, generate, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translate
-
Field Details
-
width
protected final int width -
height
protected final int height -
depth
protected final int depth -
hPos
protected int hPos
-
-
Constructor Details
-
StructurePieceWithDimensions
protected StructurePieceWithDimensions(StructurePieceType type, Random random, int x, int y, int z, int width, int height, int depth) -
StructurePieceWithDimensions
-
-
Method Details
-
toNbt
- Specified by:
toNbtin classStructurePiece
-
method_14839
-