Package net.minecraft.structure
Class SimpleStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
- Direct Known Subclasses:
EndCityGenerator.Piece
,IglooGenerator.Piece
,NetherFossilGenerator.Piece
,OceanRuinGenerator.Piece
,RuinedPortalStructurePiece
,ShipwreckGenerator.Piece
,WoodlandMansionGenerator.Piece
- Mappings:
Namespace Name official dbp
intermediary net/minecraft/class_3470
named net/minecraft/structure/SimpleStructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
private static Logger
protected StructurePlacementData
protected BlockPos
protected Structure
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
ConstructorDescriptionSimpleStructurePiece(StructurePieceType structurePieceType, int int2, StructureManager structureManager, Identifier identifier, String string, StructurePlacementData structurePlacementData, BlockPos blockPos)
SimpleStructurePiece(StructurePieceType structurePieceType, NbtCompound nbtCompound, ServerWorld serverWorld, Function<Identifier,StructurePlacementData> function)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)
protected abstract void
handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)
protected Identifier
void
translate(int x, int y, int z)
protected void
writeNbt(ServerWorld world, NbtCompound nbt)
Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, canAddBlock, canReplace, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getType, intersectsChunk, isUnderSeaLevel, method_33882, method_35454, method_35455, method_35456, method_35457, method_35458, method_35460, offsetPos, orientateChest, setOrientation, toNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official e
Ldbp;e:Lorg/apache/logging/log4j/Logger;
intermediary field_16586
Lnet/minecraft/class_3470;field_16586:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/structure/SimpleStructurePiece;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_31664
- Mappings:
Namespace Name Mixin selector official a
Ldbp;a:Ljava/lang/String;
intermediary field_31664
Lnet/minecraft/class_3470;field_31664:Ljava/lang/String;
named field_31664
Lnet/minecraft/structure/SimpleStructurePiece;field_31664:Ljava/lang/String;
-
structure
- Mappings:
Namespace Name Mixin selector official b
Ldbp;b:Ldcu;
intermediary field_15433
Lnet/minecraft/class_3470;field_15433:Lnet/minecraft/class_3499;
named structure
Lnet/minecraft/structure/SimpleStructurePiece;structure:Lnet/minecraft/structure/Structure;
-
placementData
- Mappings:
Namespace Name Mixin selector official c
Ldbp;c:Ldcq;
intermediary field_15434
Lnet/minecraft/class_3470;field_15434:Lnet/minecraft/class_3492;
named placementData
Lnet/minecraft/structure/SimpleStructurePiece;placementData:Lnet/minecraft/structure/StructurePlacementData;
-
pos
- Mappings:
Namespace Name Mixin selector official d
Ldbp;d:Lgg;
intermediary field_15432
Lnet/minecraft/class_3470;field_15432:Lnet/minecraft/class_2338;
named pos
Lnet/minecraft/structure/SimpleStructurePiece;pos:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
SimpleStructurePiece
public SimpleStructurePiece(StructurePieceType structurePieceType, int int2, StructureManager structureManager, Identifier identifier, String string, StructurePlacementData structurePlacementData, BlockPos blockPos) -
SimpleStructurePiece
public SimpleStructurePiece(StructurePieceType structurePieceType, NbtCompound nbtCompound, ServerWorld serverWorld, Function<Identifier,StructurePlacementData> function)
-
-
Method Details
-
method_35470
- Mappings:
Namespace Name Mixin selector official a
Ldbp;a()Lww;
intermediary method_35470
Lnet/minecraft/class_3470;method_35470()Lnet/minecraft/class_2960;
named method_35470
Lnet/minecraft/structure/SimpleStructurePiece;method_35470()Lnet/minecraft/util/Identifier;
-
writeNbt
- Specified by:
writeNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldbl;a(Labr;Lna;)V
intermediary method_14943
Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;)V
-
generate
public boolean generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)- Specified by:
generate
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldbl;a(Lbxk;Lbxg;Lcmn;Ljava/util/Random;Ldaq;Lbvu;Lgg;)Z
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;)Z
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;)Z
-
handleMetadata
protected abstract void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)- Mappings:
Namespace Name Mixin selector official a
Ldbp;a(Ljava/lang/String;Lgg;Lbxd;Ljava/util/Random;Ldaq;)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
-
translate
public void translate(int x, int y, int z)- Overrides:
translate
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldbl;a(III)V
intermediary method_14922
Lnet/minecraft/class_3443;method_14922(III)V
named translate
Lnet/minecraft/structure/StructurePiece;translate(III)V
-
getRotation
- Overrides:
getRotation
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official ac_
Ldbl;ac_()Lcfk;
intermediary method_16888
Lnet/minecraft/class_3443;method_16888()Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/structure/StructurePiece;getRotation()Lnet/minecraft/util/BlockRotation;
-