Package net.minecraft.structure
Class PoolStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.PoolStructurePiece
public class PoolStructurePiece extends StructurePiece
- Mappings:
Namespace Name official cxbintermediary net/minecraft/class_3790named net/minecraft/structure/PoolStructurePiece
-
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 Loggerfield_24991private intgroundLevelDeltaprivate List<JigsawJunction>junctionsprotected StructurePoolElementpoolElementprotected BlockPosposprotected BlockRotationrotationprivate StructureManagerstructureManagerFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description PoolStructurePiece(StructureManager manager, CompoundTag tag)PoolStructurePiece(StructureManager structureManager, StructurePoolElement structurePoolElement, BlockPos blockPos, int int2, BlockRotation blockRotation, BlockBox blockBox) -
Method Summary
Modifier and Type Method Description voidaddJunction(JigsawJunction junction)booleangenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)intgetGroundLevelDelta()List<JigsawJunction>getJunctions()StructurePoolElementgetPoolElement()BlockPosgetPos()BlockRotationgetRotation()booleanmethod_27236(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox blockBox, BlockPos blockPos, boolean keepJigsaws)protected voidtoNbt(CompoundTag tag)StringtoString()voidtranslate(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
-
field_24991
- Mappings:
Namespace Name Mixin selector official dLcxb;d:Lorg/apache/logging/log4j/Logger;intermediary field_24991Lnet/minecraft/class_3790;field_24991:Lorg/apache/logging/log4j/Logger;named field_24991Lnet/minecraft/structure/PoolStructurePiece;field_24991:Lorg/apache/logging/log4j/Logger;
-
poolElement
- Mappings:
Namespace Name Mixin selector official aLcxb;a:Lctw;intermediary field_16693Lnet/minecraft/class_3790;field_16693:Lnet/minecraft/class_3784;named poolElementLnet/minecraft/structure/PoolStructurePiece;poolElement:Lnet/minecraft/structure/pool/StructurePoolElement;
-
pos
- Mappings:
Namespace Name Mixin selector official bLcxb;b:Lfx;intermediary field_16695Lnet/minecraft/class_3790;field_16695:Lnet/minecraft/class_2338;named posLnet/minecraft/structure/PoolStructurePiece;pos:Lnet/minecraft/util/math/BlockPos;
-
groundLevelDelta
private final int groundLevelDelta- Mappings:
Namespace Name Mixin selector official eLcxb;e:Iintermediary field_16692Lnet/minecraft/class_3790;field_16692:Inamed groundLevelDeltaLnet/minecraft/structure/PoolStructurePiece;groundLevelDelta:I
-
rotation
- Mappings:
Namespace Name Mixin selector official cLcxb;c:Lccm;intermediary field_16694Lnet/minecraft/class_3790;field_16694:Lnet/minecraft/class_2470;named rotationLnet/minecraft/structure/PoolStructurePiece;rotation:Lnet/minecraft/util/BlockRotation;
-
junctions
- Mappings:
Namespace Name Mixin selector official fLcxb;f:Ljava/util/List;intermediary field_16696Lnet/minecraft/class_3790;field_16696:Ljava/util/List;named junctionsLnet/minecraft/structure/PoolStructurePiece;junctions:Ljava/util/List;
-
structureManager
- Mappings:
Namespace Name Mixin selector official gLcxb;g:Lcyj;intermediary field_17660Lnet/minecraft/class_3790;field_17660:Lnet/minecraft/class_3485;named structureManagerLnet/minecraft/structure/PoolStructurePiece;structureManager:Lnet/minecraft/structure/StructureManager;
-
-
Constructor Details
-
PoolStructurePiece
public PoolStructurePiece(StructureManager structureManager, StructurePoolElement structurePoolElement, BlockPos blockPos, int int2, BlockRotation blockRotation, BlockBox blockBox) -
PoolStructurePiece
- Mappings:
Namespace Name Mixin selector official <init>Lcxb;<init>(Lcyj;Lmq;)Vintermediary <init>Lnet/minecraft/class_3790;<init>(Lnet/minecraft/class_3485;Lnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/structure/PoolStructurePiece;<init>(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/nbt/CompoundTag;)V
-
-
Method Details
-
toNbt
- Specified by:
toNbtin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lmq;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_2487;)Vnamed toNbtLnet/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:
generatein classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lbta;Lfx;)Zintermediary method_14931Lnet/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;)Znamed generateLnet/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
-
method_27236
public boolean method_27236(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox blockBox, BlockPos blockPos, boolean keepJigsaws)- Mappings:
Namespace Name Mixin selector official aLcxb;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lfx;Z)Zintermediary method_27236Lnet/minecraft/class_3790;method_27236(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_2338;Z)Znamed method_27236Lnet/minecraft/structure/PoolStructurePiece;method_27236(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/BlockPos;Z)Z
-
translate
public void translate(int x, int y, int z)- Overrides:
translatein classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(III)Vintermediary method_14922Lnet/minecraft/class_3443;method_14922(III)Vnamed translateLnet/minecraft/structure/StructurePiece;translate(III)V
-
getRotation
- Overrides:
getRotationin classStructurePiece- Mappings:
Namespace Name Mixin selector official au_Lcxh;au_()Lccm;intermediary method_16888Lnet/minecraft/class_3443;method_16888()Lnet/minecraft/class_2470;named getRotationLnet/minecraft/structure/StructurePiece;getRotation()Lnet/minecraft/util/BlockRotation;
-
toString
-
getPoolElement
- Mappings:
Namespace Name Mixin selector official bLcxb;b()Lctw;intermediary method_16644Lnet/minecraft/class_3790;method_16644()Lnet/minecraft/class_3784;named getPoolElementLnet/minecraft/structure/PoolStructurePiece;getPoolElement()Lnet/minecraft/structure/pool/StructurePoolElement;
-
getPos
- Mappings:
Namespace Name Mixin selector official cLcxb;c()Lfx;intermediary method_16648Lnet/minecraft/class_3790;method_16648()Lnet/minecraft/class_2338;named getPosLnet/minecraft/structure/PoolStructurePiece;getPos()Lnet/minecraft/util/math/BlockPos;
-
getGroundLevelDelta
public int getGroundLevelDelta()- Mappings:
Namespace Name Mixin selector official dLcxb;d()Iintermediary method_16646Lnet/minecraft/class_3790;method_16646()Inamed getGroundLevelDeltaLnet/minecraft/structure/PoolStructurePiece;getGroundLevelDelta()I
-
addJunction
- Mappings:
Namespace Name Mixin selector official aLcxb;a(Lctr;)Vintermediary method_16647Lnet/minecraft/class_3790;method_16647(Lnet/minecraft/class_3780;)Vnamed addJunctionLnet/minecraft/structure/PoolStructurePiece;addJunction(Lnet/minecraft/structure/JigsawJunction;)V
-
getJunctions
- Mappings:
Namespace Name Mixin selector official eLcxb;e()Ljava/util/List;intermediary method_16645Lnet/minecraft/class_3790;method_16645()Ljava/util/List;named getJunctionsLnet/minecraft/structure/PoolStructurePiece;getJunctions()Ljava/util/List;
-