Inventories! (Part 1)

This commit is contained in:
LOOHP
2022-12-09 02:40:16 +00:00
parent ca186938f4
commit 949d2f34d7
48 changed files with 10960 additions and 6652 deletions
@@ -28,4 +28,24 @@ public enum EquipmentSlot {
LEGGINGS,
BOOTS;
public boolean isHandSlot() {
switch (this) {
case MAINHAND:
case OFFHAND:
return true;
}
return false;
}
public boolean isArmorSlot() {
switch (this) {
case HELMET:
case CHESTPLATE:
case LEGGINGS:
case BOOTS:
return true;
}
return false;
}
}