Re-add missing patch for IForgeItem#getEquipmentSlot (#8041)

This commit is contained in:
sciwhiz12 authored and GitHub committed 2021-09-08 11:20:12 -07:00
1 parent 675bf8bde2
commit 049ed79e7b
3 files changed
+17 -8

No files matched your search

@@ -373,7 +373,7 @@ public interface IForgeItem
/**
* Override this to set a non-default armor slot for an ItemStack, but <em>do
* not use this to get the armor slot of said stack; for that, use
* {@link net.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack)}.</em>
* {@link net.minecraft.world.entity.LivingEntity#getEquipmentSlotForItem(ItemStack)}..</em>
*
* @param stack the ItemStack
* @return the armor slot of the ItemStack, or {@code null} to let the default
@@ -181,7 +181,7 @@ public interface IForgeItemStack extends ICapabilitySerializable<CompoundTag>
/**
* Override this to set a non-default armor slot for an ItemStack, but <em>do
* not use this to get the armor slot of said stack; for that, use
* {@link net.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack)}.</em>
* {@link net.minecraft.world.entity.LivingEntity#getEquipmentSlotForItem(ItemStack)}.</em>
*
* @return the armor slot of the ItemStack, or {@code null} to let the default
* vanilla logic as per {@code LivingEntity.getSlotForItemStack(stack)}