Package net.minecraft.structure
Class ShipwreckGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.ShipwreckGenerator.Piece
- Enclosing class:
- ShipwreckGenerator
- Mappings:
Namespace Name official dfa$a
intermediary net/minecraft/class_3415$class_3416
named net/minecraft/structure/ShipwreckGenerator$Piece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields inherited from class net.minecraft.structure.SimpleStructurePiece
placementData, pos, structure, template
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
ConstructorDescriptionPiece
(StructureManager manager, NbtCompound nbt) Piece
(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, boolean grounded) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StructurePlacementData
createPlacementData
(BlockRotation rotation) void
generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pos) protected void
handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
writeNbt
(StructureContext context, NbtCompound nbt) Methods inherited from class net.minecraft.structure.SimpleStructurePiece
getId, getRotation, translate
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, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getType, getWeightType, intersectsChunk, isUnderSeaLevel, offsetPos, orientateChest, setOrientation, toNbt
-
Field Details
-
grounded
private final boolean grounded- Mappings:
Namespace Name Mixin selector official e
Ldfa$a;e:Z
intermediary field_14538
Lnet/minecraft/class_3415$class_3416;field_14538:Z
named grounded
Lnet/minecraft/structure/ShipwreckGenerator$Piece;grounded:Z
-
-
Constructor Details
-
Piece
public Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, boolean grounded) - Mappings:
Namespace Name Mixin selector official <init>
Ldfa$a;<init>(Ldgp;Lyh;Lgh;Lciu;Z)V
intermediary <init>
Lnet/minecraft/class_3415$class_3416;<init>(Lnet/minecraft/class_3485;Lnet/minecraft/class_2960;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Z)V
named <init>
Lnet/minecraft/structure/ShipwreckGenerator$Piece;<init>(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/Identifier;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Z)V
-
Piece
- Mappings:
Namespace Name Mixin selector official <init>
Ldfa$a;<init>(Ldgp;Loc;)V
intermediary <init>
Lnet/minecraft/class_3415$class_3416;<init>(Lnet/minecraft/class_3485;Lnet/minecraft/class_2487;)V
named <init>
Lnet/minecraft/structure/ShipwreckGenerator$Piece;<init>(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/nbt/NbtCompound;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbt
in classSimpleStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldff;a(Ldfp;Loc;)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
-
createPlacementData
- Mappings:
Namespace Name Mixin selector official a
Ldfa$a;a(Lciu;)Ldgq;
intermediary method_35452
Lnet/minecraft/class_3415$class_3416;method_35452(Lnet/minecraft/class_2470;)Lnet/minecraft/class_3492;
named createPlacementData
Lnet/minecraft/structure/ShipwreckGenerator$Piece;createPlacementData(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/structure/StructurePlacementData;
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) - Specified by:
handleMetadata
in classSimpleStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldfj;a(Ljava/lang/String;Lgh;Lcas;Ljava/util/Random;Ldeh;)V
intermediary method_15026
Lnet/minecraft/class_3470;method_15026(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_5425;Ljava/util/Random;Lnet/minecraft/class_3341;)V
named handleMetadata
Lnet/minecraft/structure/SimpleStructurePiece;handleMetadata(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/ServerWorldAccess;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;)V
-
generate
public void generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pos) - Overrides:
generate
in classSimpleStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldff;a(Lcav;Lcau;Lcpz;Ljava/util/Random;Ldeh;Lbzk;Lgh;)V
intermediary method_14931
Lnet/minecraft/class_3443;method_14931(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;Lnet/minecraft/class_2338;)V
named generate
Lnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)V
-