Package net.minecraft.structure
Class OceanMonumentGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.OceanMonumentGenerator.Piece
- Direct Known Subclasses:
OceanMonumentGenerator.Base,OceanMonumentGenerator.CoreRoom,OceanMonumentGenerator.DoubleXRoom,OceanMonumentGenerator.DoubleXYRoom,OceanMonumentGenerator.DoubleYRoom,OceanMonumentGenerator.DoubleYZRoom,OceanMonumentGenerator.DoubleZRoom,OceanMonumentGenerator.Entry,OceanMonumentGenerator.Penthouse,OceanMonumentGenerator.SimpleRoom,OceanMonumentGenerator.SimpleRoomTop,OceanMonumentGenerator.WingRoom
- Enclosing class:
- OceanMonumentGenerator
public abstract static class OceanMonumentGenerator.Piece 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 static BlockStateDARK_PRISMARINEprotected static BlockStatefield_14470protected static intFOUR_ONE_ZERO_INDEXprotected static Set<Block>ICE_BLOCKSprotected static BlockStatePRISMARINEprotected static BlockStatePRISMARINE_BRICKSprotected static BlockStateSEA_LANTERNprotected OceanMonumentGenerator.PieceSettingsettingprotected static intTWO_TWO_ZERO_INDEXprotected static intTWO_ZERO_ZERO_INDEXprotected static BlockStateWATERprotected static intZERO_ONE_ZERO_INDEXFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Modifier Constructor Description Piece(StructurePieceType type, int length)protectedPiece(StructurePieceType structurePieceType, int int2, Direction direction, OceanMonumentGenerator.PieceSetting pieceSetting, int int3, int int4, int int5)Piece(StructurePieceType type, CompoundTag tag)Piece(StructurePieceType structurePieceType, Direction direction, BlockBox blockBox) -
Method Summary
Modifier and Type Method Description protected static intgetIndex(int x, int y, int z)protected voidmethod_14771(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState)protected booleanmethod_14772(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, int int4)protected voidmethod_14774(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, boolean bool)protected booleanmethod_14775(BlockBox blockBox, int int2, int int3, int int4, int int5)protected voidsetAirAndWater(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int x, int y, int z, int width, int height, int depth)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
-
PRISMARINE
-
PRISMARINE_BRICKS
-
DARK_PRISMARINE
-
field_14470
-
SEA_LANTERN
-
WATER
-
ICE_BLOCKS
-
TWO_ZERO_ZERO_INDEX
protected static final int TWO_ZERO_ZERO_INDEX -
TWO_TWO_ZERO_INDEX
protected static final int TWO_TWO_ZERO_INDEX -
ZERO_ONE_ZERO_INDEX
protected static final int ZERO_ONE_ZERO_INDEX -
FOUR_ONE_ZERO_INDEX
protected static final int FOUR_ONE_ZERO_INDEX -
setting
-
-
Constructor Details
-
Piece
-
Piece
-
Piece
protected Piece(StructurePieceType structurePieceType, int int2, Direction direction, OceanMonumentGenerator.PieceSetting pieceSetting, int int3, int int4, int int5) -
Piece
-
-
Method Details
-
getIndex
protected static int getIndex(int x, int y, int z) -
toNbt
- Specified by:
toNbtin classStructurePiece
-
setAirAndWater
protected void setAirAndWater(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int x, int y, int z, int width, int height, int depth) -
method_14774
protected void method_14774(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, boolean bool) -
method_14771
protected void method_14771(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, int int7, BlockState blockState) -
method_14775
-
method_14772
protected boolean method_14772(StructureWorldAccess structureWorldAccess, BlockBox blockBox, int int2, int int3, int int4)
-