Class AbstractVillagePiece
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.StructurePiece
-
- net.minecraft.world.gen.feature.structure.AbstractVillagePiece
-
public class AbstractVillagePiece extends StructurePiece
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
-
Field Summary
Fields Modifier and Type Field Description protected JigsawPiece
element
private int
groundLevelDelta
private java.util.List<JigsawJunction>
junctions
private static org.apache.logging.log4j.Logger
LOGGER
protected BlockPos
position
protected Rotation
rotation
private TemplateManager
structureManager
-
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
-
Constructor Summary
Constructors Constructor Description AbstractVillagePiece(TemplateManager p_i242037_1_, CompoundNBT p_i242037_2_)
AbstractVillagePiece(TemplateManager p_i242036_1_, JigsawPiece p_i242036_2_, BlockPos p_i242036_3_, int p_i242036_4_, Rotation p_i242036_5_, MutableBoundingBox p_i242036_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalSaveData(CompoundNBT p_143011_1_)
void
addJunction(JigsawJunction p_214831_1_)
JigsawPiece
getElement()
int
getGroundLevelDelta()
java.util.List<JigsawJunction>
getJunctions()
BlockPos
getPosition()
Rotation
getRotation()
void
move(int p_181138_1_, int p_181138_2_, int p_181138_3_)
boolean
place(ISeedReader p_237001_1_, StructureManager p_237001_2_, ChunkGenerator p_237001_3_, java.util.Random p_237001_4_, MutableBoundingBox p_237001_5_, BlockPos p_237001_6_, boolean p_237001_7_)
boolean
postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
java.lang.String
toString()
-
Methods inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
addChildren, createChest, createChest, createDispenser, createTag, edgesLiquid, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getType, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
element
protected final JigsawPiece element
-
position
protected BlockPos position
-
groundLevelDelta
private final int groundLevelDelta
-
rotation
protected final Rotation rotation
-
junctions
private final java.util.List<JigsawJunction> junctions
-
structureManager
private final TemplateManager structureManager
-
-
Constructor Detail
-
AbstractVillagePiece
public AbstractVillagePiece(TemplateManager p_i242036_1_, JigsawPiece p_i242036_2_, BlockPos p_i242036_3_, int p_i242036_4_, Rotation p_i242036_5_, MutableBoundingBox p_i242036_6_)
-
AbstractVillagePiece
public AbstractVillagePiece(TemplateManager p_i242037_1_, CompoundNBT p_i242037_2_)
-
-
Method Detail
-
addAdditionalSaveData
protected void addAdditionalSaveData(CompoundNBT p_143011_1_)
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
- Specified by:
postProcess
in classStructurePiece
-
place
public boolean place(ISeedReader p_237001_1_, StructureManager p_237001_2_, ChunkGenerator p_237001_3_, java.util.Random p_237001_4_, MutableBoundingBox p_237001_5_, BlockPos p_237001_6_, boolean p_237001_7_)
-
move
public void move(int p_181138_1_, int p_181138_2_, int p_181138_3_)
- Overrides:
move
in classStructurePiece
-
getRotation
public Rotation getRotation()
- Overrides:
getRotation
in classStructurePiece
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getElement
public JigsawPiece getElement()
-
getPosition
public BlockPos getPosition()
-
getGroundLevelDelta
public int getGroundLevelDelta()
-
addJunction
public void addJunction(JigsawJunction p_214831_1_)
-
getJunctions
public java.util.List<JigsawJunction> getJunctions()
-
-