Created event handler.
This commit is contained in:
@ -0,0 +1,9 @@
|
|||||||
|
package dev.micle.xptools.events.common;
|
||||||
|
|
||||||
|
import net.minecraftforge.event.entity.living.LivingExperienceDropEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
|
||||||
|
public class OnLivingExperienceDropEventHandler {
|
||||||
|
@SubscribeEvent
|
||||||
|
public void onLivingExperienceDropEvent(LivingExperienceDropEvent event) {}
|
||||||
|
}
|
@ -3,6 +3,7 @@ package dev.micle.xptools.proxy;
|
|||||||
import dev.micle.xptools.XpTools;
|
import dev.micle.xptools.XpTools;
|
||||||
import dev.micle.xptools.config.Config;
|
import dev.micle.xptools.config.Config;
|
||||||
import dev.micle.xptools.events.common.OnBlockBreakEventHandler;
|
import dev.micle.xptools.events.common.OnBlockBreakEventHandler;
|
||||||
|
import dev.micle.xptools.events.common.OnLivingExperienceDropEventHandler;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
@ -34,6 +35,7 @@ public class Proxy implements IProxy {
|
|||||||
|
|
||||||
// Register event handlers
|
// Register event handlers
|
||||||
MinecraftForge.EVENT_BUS.register(new OnBlockBreakEventHandler());
|
MinecraftForge.EVENT_BUS.register(new OnBlockBreakEventHandler());
|
||||||
|
MinecraftForge.EVENT_BUS.register(new OnLivingExperienceDropEventHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setup(FMLCommonSetupEvent event) {}
|
private static void setup(FMLCommonSetupEvent event) {}
|
||||||
|
Reference in New Issue
Block a user