Skip to content

Commit

Permalink
refactor(next): remove LivingEatEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 28, 2022
1 parent f7823db commit 8ed1400
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 92 deletions.
@@ -1,13 +1,10 @@
package org.auioc.mcmod.arnicalib.common.event;

import org.auioc.mcmod.arnicalib.common.event.impl.ItemInventoryTickEvent;
import org.auioc.mcmod.arnicalib.common.event.impl.LivingEatEvent;
import org.auioc.mcmod.arnicalib.common.event.impl.PistonCheckPushableEvent;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.food.FoodData;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
Expand All @@ -31,10 +28,4 @@ public static boolean onSelectedItemItemInventoryTick(Player player, Level level
return BUS.post(new ItemInventoryTickEvent.Selected(player, level, itemStack, index));
}

public static LivingEatEvent onLivingEat(LivingEntity living, FoodData foodData, ItemStack foodItemStack) {
var event = new LivingEatEvent(living, foodData, foodItemStack);
BUS.post(event);
return event;
}

}

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/arnicalib.mixin.json
Expand Up @@ -9,7 +9,6 @@
"common.MixinItemStack",
"common.MixinProjectile",
"common.MixinArrow",
"common.MixinFoodData",
"common.MixinEnchantment",
"server.MixinServerLifecycleHooks",
"server.MixinLootContext",
Expand Down

0 comments on commit 8ed1400

Please sign in to comment.