Class RecipeConditions.Block

java.lang.Object
me.mehboss.utils.RecipeConditions.Block
Enclosing class:
RecipeConditions

public static final class RecipeConditions.Block extends Object
Conditions related to the world or block environment in which the recipe is executed.
  • Field Details

  • Constructor Details

    • Block

      public Block()
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • test

      public boolean test(org.bukkit.Location loc, @Nullable org.bukkit.entity.Player player)
      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.