Interface IEquipmentChangeListener

All Known Implementing Classes:
AquanautHelmetItem, BunnyEarsItem, HaloItem, LuckyHatItem, MiningHatItem, PostmanHatItem, ShulkerHelmetItem, WingHelmetItem

public interface IEquipmentChangeListener
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onEquippedHatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack newStack)
    Method that is called when the item was equipped.
    default void
    onUnequippedHatItem(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 entity
      newStack - 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 entity
      oldStack - unequipped ItemStack. Some APIs (like Curios or Baubles) does not support the stack. For these this is ItemStack.EMPTY!