Skip to content

Commit

Permalink
refactor(next): remove CatMorningGiftChanceEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 28, 2022
1 parent 9ce7684 commit 5a15ace
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 79 deletions.

This file was deleted.

Expand Up @@ -9,7 +9,6 @@
import org.apache.logging.log4j.Marker;
import org.auioc.mcmod.arnicalib.base.log.LogUtil;
import org.auioc.mcmod.arnicalib.game.chat.TextUtils;
import org.auioc.mcmod.arnicalib.server.event.impl.CatMorningGiftChanceEvent;
import org.auioc.mcmod.arnicalib.server.event.impl.EyeOfEnderSurvivableEvent;
import org.auioc.mcmod.arnicalib.server.event.impl.FishingRodCastEvent;
import org.auioc.mcmod.arnicalib.server.event.impl.ItemHurtEvent;
Expand All @@ -26,7 +25,6 @@
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.animal.Cat;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.projectile.EyeOfEnder;
import net.minecraft.world.item.ItemStack;
Expand Down Expand Up @@ -81,12 +79,6 @@ public static PiglinStanceEvent.Stance onPiglinChooseEvent(LivingEntity target)
return event.getStance();
}

public static double onCatSetMorningGiftChance(Cat cat, Player ownerPlayer) {
var event = new CatMorningGiftChanceEvent(cat, ownerPlayer);
BUS.post(event);
return event.getChance();
}

// Coremod arnicalib.fishing_rod_item
public static FishingRodCastEvent.Pre preFishingRodCast(Player player, Level level, ItemStack fishingRod, int speedBonus, int luckBonus) {
var event = new FishingRodCastEvent.Pre((ServerPlayer) player, (ServerLevel) level, fishingRod, speedBonus, luckBonus);
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/resources/arnicalib.mixin.json
Expand Up @@ -14,8 +14,7 @@
"server.MixinServerPlayer",
"server.MixinLivingEntity",
"server.MixinEyeOfEnder",
"server.MixinEnderEyeItem",
"server.MixinCatRelaxOnOwnerGoal"
"server.MixinEnderEyeItem"
],
"client": [],
"server": [],
Expand Down

0 comments on commit 5a15ace

Please sign in to comment.