StretchInstance
A class in Root.Township, Alta.Caves.PluginParts.
Runtime instance of the Stretch plugin part: extends a height map into the Y axis from the floor or the roof.
- Listed in World generation
- Inherits or implements
MapGeneratorPartInstance<Stretch>
Constructors
| Member | What it is |
|---|---|
StretchInstance(PluginInstance plugin, Stretch part) | Creates a StretchInstance from plugin and part. |
Methods
| Member | What it is |
|---|---|
override void Modify(MapChunkLayer layer, int offX, int offZ) | For each column, sets the first cell to 0.75 and fills the rest from the height map value times the stretch curve, clamped to the part's range. |