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
-
Field Summary
Modifier and TypeFieldDescriptionprotected MutableBoundingBox
private final int
private final int
static final StructureStart<?>
protected final List<StructurePiece>
protected final SharedSeedRandom
private int
-
Constructor Summary
ConstructorDescriptionStructureStart
(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
Modifier and TypeMethodDescriptionvoid
protected void
boolean
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_) int
int
Structure<?>
protected int
int
boolean
isValid()
protected void
moveBelowSeaLevel
(int p_214628_1_, Random p_214628_2_, int p_214628_3_) protected void
moveInsideHeights
(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_, Random p_230366_4_, MutableBoundingBox p_230366_5_, ChunkPos p_230366_6_)
-
Field Details
-
INVALID_START
-
feature
-
pieces
-
boundingBox
-
chunkX
private final int chunkX -
chunkZ
private final int chunkZ -
references
private int references -
random
-
-
Constructor Details
-
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 Details
-
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
-
getPieces
-
placeInChunk
public void placeInChunk(ISeedReader p_230366_1_, StructureManager p_230366_2_, ChunkGenerator p_230366_3_, Random p_230366_4_, MutableBoundingBox p_230366_5_, ChunkPos p_230366_6_) -
calculateBoundingBox
protected void calculateBoundingBox() -
createTag
-
moveBelowSeaLevel
-
moveInsideHeights
-
isValid
public boolean isValid() -
getChunkX
public int getChunkX() -
getChunkZ
public int getChunkZ() -
getLocatePos
-
canBeReferenced
public boolean canBeReferenced() -
addReference
public void addReference() -
getReferences
public int getReferences() -
getMaxReferences
protected int getMaxReferences() -
getFeature
-