Class RecipeConditions.Block
java.lang.Object
me.mehboss.utils.RecipeConditions.Block
- Enclosing class:
RecipeConditions
Conditions related to the world or block environment in which
the recipe is executed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a range of valid in-game times for recipe conditions. -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
allowWorlds
-
denyWorlds
-
timeRanges
-
weathers
-
allowBiomes
-
denyBiomes
-
advancements
-
moonPhases
-
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
test
Fast-path test (no messages collected). -
test
public boolean test(org.bukkit.Location loc, @Nullable org.bukkit.entity.Player player, @Nullable List<String> outReasons) Tests this block against a location and (optionally) a player. If outReasons is non-null, collects ALL failure messages and still returns false. If outReasons is null, short-circuits on first failure for performance.
-