Skip to content

Commit

Permalink
refactor(next): remove PistonCheckPushableEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 28, 2022
1 parent fed4e81 commit 74b0ffa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 64 deletions.
@@ -1,24 +1,16 @@
package org.auioc.mcmod.arnicalib.common.event;

import org.auioc.mcmod.arnicalib.common.event.impl.ItemInventoryTickEvent;
import org.auioc.mcmod.arnicalib.common.event.impl.PistonCheckPushableEvent;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;

public final class AHCommonEventFactory {

private static final IEventBus BUS = MinecraftForge.EVENT_BUS;

public static boolean onPistonCheckPushable(BlockState blockState, Level level, BlockPos blockPos, Direction pushDirection, boolean p_60209_, Direction p_60210_) {
return BUS.post(new PistonCheckPushableEvent(blockState, level, blockPos, pushDirection, p_60209_, p_60210_));
}

public static boolean onSelectedItemItemInventoryTick(Player player, Level level, ItemStack itemStack, int index) {
return BUS.post(new ItemInventoryTickEvent.Selected(player, level, itemStack, index));
}
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/arnicalib.mixin.json
Expand Up @@ -3,7 +3,6 @@
"package": "org.auioc.mcmod.arnicalib.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"common.MixinPistonBaseBlock",
"common.MixinMobEffectInstance",
"common.MixinCommandSourceStack",
"common.MixinItemStack",
Expand Down

0 comments on commit 74b0ffa

Please sign in to comment.