Package de.cech12.bucketlib.mixin
Class ItemMixin
java.lang.Object
de.cech12.bucketlib.mixin.ItemMixin
Mixin for the Item class to enable the possibility to configure the item's durability and hook into other hidden functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcanBeDepletedProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir) Injection method to initialize the maxDamage value.voidgetBarColorProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir) Injection method to initialize the maxDamage value.voidgetBarWidthProxy(net.minecraft.world.item.ItemStack stack, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir) Injection method to initialize the maxDamage value.voidgetMaxDamageProxy(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir) Injection method to initialize the maxDamage value.
-
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- ItemStackcir- 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- ItemStackcir- CallbackInfoReturnable
-