handle BODY slot for non-mobs (#10822)

This commit is contained in:
Jake Potrebic
2024-05-29 11:23:51 -07:00
parent cae5734b19
commit 82ece252bc
4 changed files with 62 additions and 2 deletions

View File

@@ -182,6 +182,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ *
+ * @param slot the equipment slot to get
+ * @return the ItemStack in the equipment slot
+ * @throws IllegalArgumentException if the slot is invalid for the entity
+ */
+ @NotNull
+ ItemStack getItem(@NotNull final org.bukkit.inventory.EquipmentSlot slot);
@@ -192,6 +193,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ *
+ * @param slot the equipment slot to set
+ * @param item the item to hold
+ * @throws IllegalArgumentException if the slot is invalid for the entity
+ */
+ void setItem(@NotNull final org.bukkit.inventory.EquipmentSlot slot, @Nullable final ItemStack item);
+