ICustomSurfaceCondition interface
A surface condition type a plugin adds, like a NeoForge mod's SurfaceRules.ConditionSource: surface rules' conditions (if_true, invert) name it in their type. Register it with IPluginRegistry.RegisterWorldgenType<ISurfaceCondition, TCondition>.
public interface ICustomSurfaceCondition : ISurfaceCondition, IRegistryResource
In Obsidian.API.
Remarks
Like ICustomSurfaceRule.Apply, ICustomSurfaceCondition.Test runs for many blocks, on several threads at once.
Methods
Test(ISurfaceContext)
bool Test(ISurfaceContext context);Whether the condition holds at the context's block.