Skip to main content

ApplyElementInstance

A class in Root.Township, Alta.Caves.PluginParts.

Runtime instance of the ApplyElement plugin part: combines every cell of the layer with the current biome's chance for an element.

Constructors​

MemberWhat it is
ApplyElementInstance(PluginInstance plugin, ApplyElement part)Creates an ApplyElementInstance from plugin and part.

Fields​

1 private and internal field
MemberWhat it is
private Element elementThe element whose chance is applied; falls back to the plugin's element if the part has none.

Methods​

MemberWhat it is
override void Modify(MapChunkLayer layer, int offX, int offZ)Applies the part's operation between each cell and the biome's chance for element.