Class ItemMixin

java.lang.Object
de.cech12.bucketlib.mixin.ItemMixin

public class ItemMixin extends Object
Mixin for the Item class to enable the possibility to configure the item's durability and hook into other hidden functionality.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    canBeDepletedProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    Injection method to initialize the maxDamage value.
    void
    getBarColorProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
    Injection method to initialize the maxDamage value.
    void
    getBarWidthProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
    Injection method to initialize the maxDamage value.
    void
    getMaxDamageProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
    Injection method to initialize the maxDamage value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemMixin

      public ItemMixin()
  • Method Details

    • getMaxDamageProxy

      public void getMaxDamageProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
      Injection method to initialize the maxDamage value.
      Parameters:
      cir - CallbackInfoReturnable
    • canBeDepletedProxy

      public void canBeDepletedProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
      Injection method to initialize the maxDamage value.
      Parameters:
      cir - CallbackInfoReturnable
    • getBarWidthProxy

      public void getBarWidthProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
      Injection method to initialize the maxDamage value.
      Parameters:
      stack - ItemStack
      cir - CallbackInfoReturnable
    • getBarColorProxy

      public void getBarColorProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
      Injection method to initialize the maxDamage value.
      Parameters:
      stack - ItemStack
      cir - CallbackInfoReturnable