Add the modid for all the hook classes

This commit is contained in:
Sollace 2019-03-18 15:47:54 +02:00
parent 8d67b60e64
commit 5213d0050e
5 changed files with 12 additions and 5 deletions

View file

@ -22,7 +22,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.Phase;
import net.minecraftforge.fml.relauncher.Side;
@EventBusSubscriber(Side.CLIENT)
@EventBusSubscriber(value = Side.CLIENT, modid = Unicopia.MODID)
class ClientHooks {
// This fixes lighting errors on the armour slots.
// #MahjongPls

View file

@ -1,11 +1,13 @@
package com.minelittlepony.unicopia.init;
import com.minelittlepony.unicopia.Unicopia;
import net.minecraftforge.client.event.ColorHandlerEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
@EventBusSubscriber(Side.CLIENT)
@EventBusSubscriber(value = Side.CLIENT, modid = Unicopia.MODID)
class ClientHooks {
@SubscribeEvent

View file

@ -1,5 +1,7 @@
package com.minelittlepony.unicopia.init;
import com.minelittlepony.unicopia.Unicopia;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.potion.Potion;
@ -9,7 +11,7 @@ import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.registry.EntityEntry;
@EventBusSubscriber
@EventBusSubscriber(modid = Unicopia.MODID)
class Hooks {
@SubscribeEvent

View file

@ -1,6 +1,7 @@
package com.minelittlepony.unicopia.player;
import com.minelittlepony.unicopia.Race;
import com.minelittlepony.unicopia.Unicopia;
import com.minelittlepony.unicopia.entity.IMagicals;
import net.minecraft.entity.Entity;
@ -20,7 +21,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.Phase;
@EventBusSubscriber
@EventBusSubscriber(modid = Unicopia.MODID)
class Hooks {
@SubscribeEvent
public static void onPlayerTick(TickEvent.PlayerTickEvent event) {

View file

@ -1,5 +1,7 @@
package com.minelittlepony.unicopia.world;
import com.minelittlepony.unicopia.Unicopia;
import net.minecraft.util.EnumActionResult;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.event.entity.player.UseHoeEvent;
@ -12,7 +14,7 @@ import net.minecraftforge.fml.common.eventhandler.Event.Result;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.Phase;
@EventBusSubscriber
@EventBusSubscriber(modid = Unicopia.MODID)
public class Hooks {
@SubscribeEvent