Begin update to 1.20.5
This commit is contained in:
@@ -9,11 +9,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/org/bukkit/inventory/EquipmentSlot.java
|
||||
+++ b/src/main/java/org/bukkit/inventory/EquipmentSlot.java
|
||||
@@ -0,0 +0,0 @@ public enum EquipmentSlot {
|
||||
LEGS,
|
||||
CHEST,
|
||||
HEAD
|
||||
public EquipmentSlotGroup getGroup() {
|
||||
return group;
|
||||
}
|
||||
+ // Paper start
|
||||
+ ;
|
||||
+ /**
|
||||
+ * Checks whether this equipment slot is a hand:
|
||||
+ * either {@link #HAND} or {@link #OFF_HAND}
|
||||
@@ -28,12 +27,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Checks whether this equipment slot
|
||||
+ * is one of the armor slots:
|
||||
+ * {@link #HEAD}, {@link #CHEST},
|
||||
+ * {@link #LEGS}, or {@link #FEET}
|
||||
+ * {@link #LEGS}, {@link #FEET}, or {@link #BODY}
|
||||
+ *
|
||||
+ * @return whether this is an armor slot
|
||||
+ */
|
||||
+ public boolean isArmor() {
|
||||
+ return this == HEAD || this == CHEST || this == LEGS || this == FEET;
|
||||
+ return this == HEAD || this == CHEST || this == LEGS || this == FEET || this == BODY;
|
||||
+ }
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user