mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Re-add missing patch for IForgeItem#getEquipmentSlot (#8041)
This commit is contained in:
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)}
|
||||
|
||||
Reference in new issue
Block a user