Class ConjureMixin

java.lang.Object
com.binaris.wizardry.core.mixin.ConjureMixin

public class ConjureMixin extends Object
We need to modify the way that the items load the durability bar, with this we check for the ConjureData if the item isn't a conjure item it just continues with the normal behavior, if the item is a conjure item and is summoned the mod will load the remaining lifetime based on gameTime and expireTime.
  • Constructor Details

    • ConjureMixin

      public ConjureMixin()
  • Method Details

    • EBWIZARDRY$conjureIsBarVisible

      public void EBWIZARDRY$conjureIsBarVisible(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    • EBWIZARDRY$conjureGetBarColor

      public void EBWIZARDRY$conjureGetBarColor(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir)
    • EBWIZARDRY$conjureGetTooltipLines

      public void EBWIZARDRY$conjureGetTooltipLines(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag isAdvanced, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<List<net.minecraft.network.chat.Component>> cir, List<net.minecraft.network.chat.Component> list)
    • EBWIZARDRY$preventDurabilityLoss

      public void EBWIZARDRY$preventDurabilityLoss(int amount, net.minecraft.util.RandomSource random, net.minecraft.server.level.ServerPlayer user, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    • EBWIZARDRY$preventBroken

      public void EBWIZARDRY$preventBroken(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)