PredicateRecord

public interface PredicateRecord

One Java→Geyser predicate. Mirrors Rainbow's GeyserConditionPredicate / GeyserRangeDispatchPredicate / GeyserMatchPredicate.

See Option J plan, "Predicate walker design — translation table" for the full Java predicate → Geyser predicate JSON mapping. Each implementation's toGeyserJson produces the documented shape per https://geysermc.org/wiki/geyser/custom-items/.

Inheritors

Types

Link copied to clipboard
public final class Condition extends Record implements PredicateRecord
condition predicate (boolean property like broken/damaged/has_component/etc.).
Link copied to clipboard
public final class Match extends Record implements PredicateRecord
match predicate (discrete value of a string-typed property).
Link copied to clipboard
public final class RangeDispatch extends Record implements PredicateRecord
range_dispatch predicate (numeric threshold + scale on a numeric property).

Functions

Link copied to clipboard
public abstract JsonObject toGeyserJson()
Emits the Geyser-format JSON object for this predicate.