API reference Obsidian.API.World.Features
PlacementFilterBase class
A modifier that keeps or drops the position, like vanilla's PlacementFilter.
public abstract class PlacementFilterBase : SinglePlacementModifierBase
In Obsidian.API.
Constructors
protected PlacementFilterBase();Methods
public sealed override Vector? GetPosition(PlacementContext context, IRandomSource random, Vector position);protected abstract bool ShouldPlace(PlacementContext context, IRandomSource random, Vector position);