Skip to content

Commit

Permalink
refactor(next): remove EyeOfEnderSurvivableEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 28, 2022
1 parent 5fc3963 commit 77a25a0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 157 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,18 +1,13 @@
package org.auioc.mcmod.arnicalib.server.event;

import static org.auioc.mcmod.arnicalib.ArnicaLib.LOGGER;
import java.util.Random;
import java.util.function.Function;
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.EyeOfEnderSurvivableEvent;
import org.auioc.mcmod.arnicalib.server.event.impl.ServerLoginEvent;
import net.minecraft.network.Connection;
import net.minecraft.network.protocol.handshake.ClientIntentionPacket;
import net.minecraft.network.protocol.login.ClientboundLoginDisconnectPacket;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.projectile.EyeOfEnder;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;

Expand All @@ -39,10 +34,4 @@ public static boolean onServerLogin(final ClientIntentionPacket packet, final Co
return false;
}

public static Function<Random, Boolean> onEyeOfEnderSetSurvivable(ServerPlayer player, EyeOfEnder eye) {
EyeOfEnderSurvivableEvent event = new EyeOfEnderSurvivableEvent(player, eye);
BUS.post(event);
return event.getSurvivable();
}

}

This file was deleted.

4 changes: 1 addition & 3 deletions src/main/resources/arnicalib.mixin.json
Expand Up @@ -9,9 +9,7 @@
"common.MixinArrow",
"common.MixinEnchantment",
"server.MixinServerLifecycleHooks",
"server.MixinLootContext",
"server.MixinEyeOfEnder",
"server.MixinEnderEyeItem"
"server.MixinLootContext"
],
"client": [],
"server": [],
Expand Down

0 comments on commit 77a25a0

Please sign in to comment.