Class AddItemCondition

java.lang.Object
de.marcely.bedwars.tools.gui.AddItemCondition

public class AddItemCondition extends Object
Optional parameter when adding items into a GUI to force them to be in a specific area
  • Method Details

    • withinX

      public static AddItemCondition withinX(int xMin, int xMax)
      Forces the item to be within the X range
      Parameters:
      xMin - The minimum X value (this position is included within the range)
      xMax - The maximum X value (this position is included within the range)
      Returns:
      The condition that you can use within the GUI
    • withinY

      public static AddItemCondition withinY(int yMin, int yMax)
      Forces the item to be within the Y range
      Parameters:
      yMin - The minimum Y value (this position is included within the range)
      yMax - The maximum Y value (this position is included within the range)
      Returns:
      The condition that you can use within the GUI
    • within

      public static AddItemCondition within(int xMin, int xMax, int yMin, int yMax)
      Forces the item to be within the X and Y range
      Parameters:
      xMin - The minimum X value (this position is included within the range)
      xMax - The maximum X value (this position is included within the range)
      yMin - The minimum Y value (this position is included within the range)
      yMax - The maximum Y value (this position is included within the range)
      Returns:
      The condition that you can use within the GUI