mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Add the modid for all the hook classes
This commit is contained in:
parent
8d67b60e64
commit
5213d0050e
5 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue