Skip to main content

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.

Constructors​

MemberWhat it is
StretchInstance(PluginInstance plugin, Stretch part)Creates a StretchInstance from plugin and part.

Methods​

MemberWhat 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.