Package com.binaris.wizardry.core.mixin
Class ConjureMixin
java.lang.Object
com.binaris.wizardry.core.mixin.ConjureMixin
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEBWIZARDRY$conjureGetBarColor(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Integer> cir) voidEBWIZARDRY$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) voidEBWIZARDRY$conjureIsBarVisible(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir) voidEBWIZARDRY$preventBroken(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir) voidEBWIZARDRY$preventDurabilityLoss(int amount, net.minecraft.util.RandomSource random, net.minecraft.server.level.ServerPlayer user, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
-
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)
-