Class StructureStart<C extends IFeatureConfig>
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.StructureStart<C>
-
- Direct Known Subclasses:
BuriedTreasureStructure.Start
,DesertPyramidStructure.Start
,EndCityStructure.Start
,FortressStructure.Start
,IglooStructure.Start
,JunglePyramidStructure.Start
,MarginedStructureStart
,MineshaftStructure.Start
,OceanMonumentStructure.Start
,OceanRuinStructure.Start
,RuinedPortalStructure.Start
,ShipwreckStructure.Start
,StrongholdStructure.Start
,SwampHutStructure.Start
,WoodlandMansionStructure.Start
public abstract class StructureStart<C extends IFeatureConfig> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableBoundingBox
boundingBox
private int
chunkX
private int
chunkZ
private Structure<C>
feature
static StructureStart<?>
INVALID_START
protected java.util.List<StructurePiece>
pieces
protected SharedSeedRandom
random
private int
references
-
Constructor Summary
Constructors Constructor Description StructureStart(Structure<C> p_i225876_1_, int p_i225876_2_, int p_i225876_3_, MutableBoundingBox p_i225876_4_, int p_i225876_5_, long p_i225876_6_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addReference()
protected void
calculateBoundingBox()
boolean
canBeReferenced()
CompoundNBT
createTag(int p_143021_1_, int p_143021_2_)
abstract void
generatePieces(DynamicRegistries p_230364_1_, ChunkGenerator p_230364_2_, TemplateManager p_230364_3_, int p_230364_4_, int p_230364_5_, Biome p_230364_6_, C p_230364_7_)
MutableBoundingBox
getBoundingBox()
int
getChunkX()
int
getChunkZ()
Structure<?>
getFeature()
BlockPos
getLocatePos()
protected int
getMaxReferences()
java.util.List<StructurePiece>
getPieces()
int
getReferences()
boolean
isValid()
protected void
moveBelowSeaLevel(int p_214628_1_, java.util.Random p_214628_2_, int p_214628_3_)
protected void
moveInsideHeights(java.util.Random p_214626_1_, int p_214626_2_, int p_214626_3_)
void
placeInChunk(ISeedReader p_230366_1_, StructureManager p_230366_2_, ChunkGenerator p_230366_3_, java.util.Random p_230366_4_, MutableBoundingBox p_230366_5_, ChunkPos p_230366_6_)
-
-
-
Field Detail
-
INVALID_START
public static final StructureStart<?> INVALID_START
-
feature
private final Structure<C extends IFeatureConfig> feature
-
pieces
protected final java.util.List<StructurePiece> pieces
-
boundingBox
protected MutableBoundingBox boundingBox
-
chunkX
private final int chunkX
-
chunkZ
private final int chunkZ
-
references
private int references
-
random
protected final SharedSeedRandom random
-
-
Constructor Detail
-
StructureStart
public StructureStart(Structure<C> p_i225876_1_, int p_i225876_2_, int p_i225876_3_, MutableBoundingBox p_i225876_4_, int p_i225876_5_, long p_i225876_6_)
-
-
Method Detail
-
generatePieces
public abstract void generatePieces(DynamicRegistries p_230364_1_, ChunkGenerator p_230364_2_, TemplateManager p_230364_3_, int p_230364_4_, int p_230364_5_, Biome p_230364_6_, C p_230364_7_)
-
getBoundingBox
public MutableBoundingBox getBoundingBox()
-
getPieces
public java.util.List<StructurePiece> getPieces()
-
placeInChunk
public void placeInChunk(ISeedReader p_230366_1_, StructureManager p_230366_2_, ChunkGenerator p_230366_3_, java.util.Random p_230366_4_, MutableBoundingBox p_230366_5_, ChunkPos p_230366_6_)
-
calculateBoundingBox
protected void calculateBoundingBox()
-
createTag
public CompoundNBT createTag(int p_143021_1_, int p_143021_2_)
-
moveBelowSeaLevel
protected void moveBelowSeaLevel(int p_214628_1_, java.util.Random p_214628_2_, int p_214628_3_)
-
moveInsideHeights
protected void moveInsideHeights(java.util.Random p_214626_1_, int p_214626_2_, int p_214626_3_)
-
isValid
public boolean isValid()
-
getChunkX
public int getChunkX()
-
getChunkZ
public int getChunkZ()
-
getLocatePos
public BlockPos getLocatePos()
-
canBeReferenced
public boolean canBeReferenced()
-
addReference
public void addReference()
-
getReferences
public int getReferences()
-
getMaxReferences
protected int getMaxReferences()
-
getFeature
public Structure<?> getFeature()
-
-