Package de.marcely.bedwars.tools.gui
Class AddItemCondition
java.lang.Object
de.marcely.bedwars.tools.gui.AddItemCondition
Optional parameter when adding items into a GUI to force them to be in a specific area
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddItemConditionwithin(int xMin, int xMax, int yMin, int yMax) Forces the item to be within the X and Y rangestatic AddItemConditionwithinX(int xMin, int xMax) Forces the item to be within the X rangestatic AddItemConditionwithinY(int yMin, int yMax) Forces the item to be within the Y range
-
Method Details
-
withinX
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
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
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
-