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
public abstract class SimpleStructurePiece extends StructurePiece
- Mappings:
Namespace Name official cxk
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
Fields Modifier and Type Field Description private static Logger
LOGGER
protected StructurePlacementData
placementData
protected BlockPos
pos
protected Structure
structure
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
Constructors Constructor Description SimpleStructurePiece(StructurePieceType type, int length)
SimpleStructurePiece(StructurePieceType type, CompoundTag tag)
-
Method Summary
Modifier and Type Method Description boolean
generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)
BlockRotation
getRotation()
protected abstract void
handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)
protected void
setStructureData(Structure structure, BlockPos pos, StructurePlacementData placementData)
protected void
toNbt(CompoundTag tag)
void
translate(int x, int y, int z)
Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Lcxk;d: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;
-
structure
- Mappings:
Namespace Name Mixin selector official a
Lcxk;a:Lcyo;
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 b
Lcxk;b:Lcyk;
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 c
Lcxk;c:Lfx;
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
- Mappings:
Namespace Name Mixin selector official <init>
Lcxh;<init>(Lcqk;I)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;I)V
named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;I)V
-
SimpleStructurePiece
- Mappings:
Namespace Name Mixin selector official <init>
Lcxh;<init>(Lcqk;Lmq;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)V
named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/CompoundTag;)V
-
-
Method Details
-
setStructureData
protected void setStructureData(Structure structure, BlockPos pos, StructurePlacementData placementData)- Mappings:
Namespace Name Mixin selector official a
Lcxk;a(Lcyo;Lfx;Lcyk;)V
intermediary method_15027
Lnet/minecraft/class_3470;method_15027(Lnet/minecraft/class_3499;Lnet/minecraft/class_2338;Lnet/minecraft/class_3492;)V
named setStructureData
Lnet/minecraft/structure/SimpleStructurePiece;setStructureData(Lnet/minecraft/structure/Structure;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/structure/StructurePlacementData;)V
-
toNbt
- Specified by:
toNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Lcxh;a(Lmq;)V
intermediary method_14943
Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_2487;)V
named toNbt
Lnet/minecraft/structure/StructurePiece;toNbt(Lnet/minecraft/nbt/CompoundTag;)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
Lcxh;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lbta;Lfx;)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
Lcxk;a(Ljava/lang/String;Lfx;Lbuj;Ljava/util/Random;Lcwn;)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
Lcxh;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 au_
Lcxh;au_()Lccm;
intermediary method_16888
Lnet/minecraft/class_3443;method_16888()Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/structure/StructurePiece;getRotation()Lnet/minecraft/util/BlockRotation;
-