Class RecipeConditions.ConditionSet
java.lang.Object
me.mehboss.utils.RecipeConditions.ConditionSet
-
Field Summary
FieldsModifier and TypeFieldDescription“conditions” or “conditions_all” block (AND).“conditions_any” is a list of OR blocks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()booleantest(org.bukkit.Location loc, org.bukkit.entity.Player player) Fast-path test (no messages).booleanOverall logic: (all == null || all passes) AND (any is empty OR at least one any-block passes) If outReasons is non-null, messages are added only for failing parts.
-
Field Details
-
all
“conditions” or “conditions_all” block (AND). -
any
“conditions_any” is a list of OR blocks. If non-empty, at least one of these blocks must pass.
-
-
Constructor Details
-
ConditionSet
public ConditionSet()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
test
Fast-path test (no messages). -
test
-