Interface IEquipmentChangeListener
- All Known Implementing Classes:
AquanautHelmetItem, BunnyEarsItem, HaloItem, LuckyHatItem, MiningHatItem, PostmanHatItem, ShulkerHelmetItem, WingHelmetItem
public interface IEquipmentChangeListener
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEquippedHatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack newStack) Method that is called when the item was equipped.default voidonUnequippedHatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack oldStack) Method that is called when the item was unequipped.
-
Method Details
-
onEquippedHatItem
default void onEquippedHatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack newStack) Method that is called when the item was equipped.- Parameters:
entity- involved entitynewStack- equipped ItemStack. Some APIs (like Curios or Baubles) does not support the stack. For these this is ItemStack.EMPTY!
-
onUnequippedHatItem
default void onUnequippedHatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack oldStack) Method that is called when the item was unequipped.- Parameters:
entity- involved entityoldStack- unequipped ItemStack. Some APIs (like Curios or Baubles) does not support the stack. For these this is ItemStack.EMPTY!
-