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 dsh
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 TypeFieldDescriptionprivate static final Logger
protected StructurePlacementData
protected BlockPos
protected StructureTemplate
protected final String
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
ConstructorDescriptionSimpleStructurePiece
(StructurePieceType type, int length, StructureTemplateManager structureTemplateManager, Identifier id, String template, StructurePlacementData placementData, BlockPos pos) SimpleStructurePiece
(StructurePieceType type, NbtCompound nbt, StructureTemplateManager structureTemplateManager, Function<Identifier, StructurePlacementData> placementDataGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) protected Identifier
getId()
getPos()
protected abstract void
handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) void
translate
(int x, int y, int z) Deprecated.protected void
writeNbt
(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, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getType, intersectsChunk, isUnderSeaLevel, offsetPos, orientateChest, setChainLength, setOrientation, toNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official h
Ldsh;h:Lorg/slf4j/Logger;
intermediary field_16586
Lnet/minecraft/class_3470;field_16586:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/structure/SimpleStructurePiece;LOGGER:Lorg/slf4j/Logger;
-
templateIdString
- Mappings:
Namespace Name Mixin selector official a
Ldsh;a:Ljava/lang/String;
intermediary field_31664
Lnet/minecraft/class_3470;field_31664:Ljava/lang/String;
named templateIdString
Lnet/minecraft/structure/SimpleStructurePiece;templateIdString:Ljava/lang/String;
-
template
- Mappings:
Namespace Name Mixin selector official b
Ldsh;b:Ldvq;
intermediary field_15433
Lnet/minecraft/class_3470;field_15433:Lnet/minecraft/class_3499;
named template
Lnet/minecraft/structure/SimpleStructurePiece;template:Lnet/minecraft/structure/StructureTemplate;
-
placementData
- Mappings:
Namespace Name Mixin selector official c
Ldsh;c:Ldvm;
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
Ldsh;d:Lgu;
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 type, int length, StructureTemplateManager structureTemplateManager, Identifier id, String template, StructurePlacementData placementData, BlockPos pos) - Mappings:
Namespace Name Mixin selector official <init>
Ldsh;<init>(Ldso;ILdvr;Lacq;Ljava/lang/String;Ldvm;Lgu;)V
intermediary <init>
Lnet/minecraft/class_3470;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3485;Lnet/minecraft/class_2960;Ljava/lang/String;Lnet/minecraft/class_3492;Lnet/minecraft/class_2338;)V
named <init>
Lnet/minecraft/structure/SimpleStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/Identifier;Ljava/lang/String;Lnet/minecraft/structure/StructurePlacementData;Lnet/minecraft/util/math/BlockPos;)V
-
SimpleStructurePiece
public SimpleStructurePiece(StructurePieceType type, NbtCompound nbt, StructureTemplateManager structureTemplateManager, Function<Identifier, StructurePlacementData> placementDataGetter) - Mappings:
Namespace Name Mixin selector official <init>
Ldsh;<init>(Ldso;Lqr;Ldvr;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_3470;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;Lnet/minecraft/class_3485;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/structure/SimpleStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/structure/StructureTemplateManager;Ljava/util/function/Function;)V
-
-
Method Details
-
getId
- Mappings:
Namespace Name Mixin selector official b
Ldsh;b()Lacq;
intermediary method_35470
Lnet/minecraft/class_3470;method_35470()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/structure/SimpleStructurePiece;getId()Lnet/minecraft/util/Identifier;
-
writeNbt
- Specified by:
writeNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(Ldsn;Lqr;)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
-
generate
public void generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) - Specified by:
generate
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(Lcne;Lcnc;Lddv;Lapf;Ldrp;Lclr;Lgu;)V
intermediary method_14931
Lnet/minecraft/class_3443;method_14931(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;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;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)V
-
handleMetadata
protected abstract void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) - Mappings:
Namespace Name Mixin selector official a
Ldsh;a(Ljava/lang/String;Lgu;Lcmz;Lapf;Ldrp;)V
intermediary method_15026
Lnet/minecraft/class_3470;method_15026(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;)V
named handleMetadata
Lnet/minecraft/structure/SimpleStructurePiece;handleMetadata(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;)V
-
translate
Deprecated.- Overrides:
translate
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldsb;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 a
Ldsb;a()Lcvw;
intermediary method_16888
Lnet/minecraft/class_3443;method_16888()Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/structure/StructurePiece;getRotation()Lnet/minecraft/util/BlockRotation;
-
getTemplate
- Mappings:
Namespace Name Mixin selector official c
Ldsh;c()Ldvq;
intermediary method_41624
Lnet/minecraft/class_3470;method_41624()Lnet/minecraft/class_3499;
named getTemplate
Lnet/minecraft/structure/SimpleStructurePiece;getTemplate()Lnet/minecraft/structure/StructureTemplate;
-
getPos
- Mappings:
Namespace Name Mixin selector official d
Ldsh;d()Lgu;
intermediary method_41625
Lnet/minecraft/class_3470;method_41625()Lnet/minecraft/class_2338;
named getPos
Lnet/minecraft/structure/SimpleStructurePiece;getPos()Lnet/minecraft/util/math/BlockPos;
-
getPlacementData
- Mappings:
Namespace Name Mixin selector official e
Ldsh;e()Ldvm;
intermediary method_41626
Lnet/minecraft/class_3470;method_41626()Lnet/minecraft/class_3492;
named getPlacementData
Lnet/minecraft/structure/SimpleStructurePiece;getPlacementData()Lnet/minecraft/structure/StructurePlacementData;
-