Interface DoubleQueryFunction

All Superinterfaces:
Function<MoParams,Object>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DoubleQueryFunction extends Function<MoParams,Object>
Opt-in query registration that returns a primitive double. A plain Function<MoParams, Object> boxes every numeric result twice — once to Double (autobox) and once to DoubleValue. Registering a query as a DoubleQueryFunction (via QueryStruct.addDoubleFunction) lets the engine skip the Double autobox always, and the DoubleValue too whenever the result feeds the numeric compiled path.

It extends Function so it still works anywhere a generic query is expected; the default apply(org.cloudburstmc.mojava.runtime.MoParams) only boxes for callers that don't take the primitive fast path.