Interface MixinItemExtension

All Superinterfaces:
net.minecraftforge.common.extensions.IForgeItem

public interface MixinItemExtension extends net.minecraftforge.common.extensions.IForgeItem
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable net.minecraft.world.entity.EquipmentSlot
    getEquipmentSlot(net.minecraft.world.item.ItemStack stack)
     
    default void
    onArmorTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
     

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getHighlightTip, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getSweepHitBox, getTags, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isRepairable, isShield, makesPiglinsNeutral, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
  • Method Details

    • onArmorTick

      default void onArmorTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
      Specified by:
      onArmorTick in interface net.minecraftforge.common.extensions.IForgeItem
    • getEquipmentSlot

      @Nullable default @Nullable net.minecraft.world.entity.EquipmentSlot getEquipmentSlot(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getEquipmentSlot in interface net.minecraftforge.common.extensions.IForgeItem