MolangExpression

@FunctionalInterface()
public interface MolangExpression

A compiled Molang program. Evaluation never throws for runtime conditions such as unknown variables or division by zero; those follow Bedrock and read as 0.

Functions

Link copied to clipboard
public static MolangExpression constant(double value)
Link copied to clipboard
public abstract double evaluate(MolangContext context)