Slot Utilities
Allows getting the x and y position of a slot in a large chest GUI
Introduction
A fully functional Version of this class has first been introduced in Version 2.1.0
Attention
This class will probably receive a rework in the future to support more GUIs. As such the current method names may change in future versions.
The Slot Utilities class allows you to get the x and y position of a slot in a large chest GUI. This is useful for our Slot presets
Class
File: SlotUtils.java
Package: dev.soncresityindustries.es.api.v0.util
Methods
getXPos
public static int getXPos(int slot) {}Usage
int x = SlotUtils.getXPos(slot);getYPos
public static int getYPos(int slot) {}Usage
int y = SlotUtils.getYPos(slot);