Client event handlers should be specified as such!
This commit is contained in:
@@ -22,8 +22,9 @@ import net.minecraftforge.client.event.GuiScreenEvent.ActionPerformedEvent;
|
|||||||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
|
||||||
@EventBusSubscriber
|
@EventBusSubscriber(Side.CLIENT)
|
||||||
public class WizardTradeTweaksHandler {
|
public class WizardTradeTweaksHandler {
|
||||||
|
|
||||||
private static final ResourceLocation NEW_SPELL_ICON = new ResourceLocation(Wizardry.MODID, "textures/gui/container/new_spell_indicator.png");
|
private static final ResourceLocation NEW_SPELL_ICON = new ResourceLocation(Wizardry.MODID, "textures/gui/container/new_spell_indicator.png");
|
||||||
|
|||||||
@@ -19,9 +19,10 @@ import net.minecraft.util.math.Vec3d;
|
|||||||
import net.minecraftforge.client.event.RenderPlayerEvent;
|
import net.minecraftforge.client.event.RenderPlayerEvent;
|
||||||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@EventBusSubscriber
|
@EventBusSubscriber(Side.CLIENT)
|
||||||
public class RenderDonationPerks {
|
public class RenderDonationPerks {
|
||||||
|
|
||||||
private static final ResourceLocation FLARE_TEXTURE = new ResourceLocation(Wizardry.MODID, "textures/entity/totem/flare.png");
|
private static final ResourceLocation FLARE_TEXTURE = new ResourceLocation(Wizardry.MODID, "textures/entity/totem/flare.png");
|
||||||
|
|||||||
+2
-1
@@ -11,6 +11,7 @@ import net.minecraft.util.math.MathHelper;
|
|||||||
import net.minecraftforge.client.event.RenderLivingEvent;
|
import net.minecraftforge.client.event.RenderLivingEvent;
|
||||||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Layer used to render the appear/disappear animation for summoned creatures.
|
* Layer used to render the appear/disappear animation for summoned creatures.
|
||||||
@@ -18,7 +19,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|||||||
* @author Electroblob
|
* @author Electroblob
|
||||||
* @since Wizardry 4.3
|
* @since Wizardry 4.3
|
||||||
*/
|
*/
|
||||||
@EventBusSubscriber
|
@EventBusSubscriber(Side.CLIENT)
|
||||||
public class LayerDisintegrateAnimation<T extends EntityLivingBase> extends LayerTiledOverlay<T> {
|
public class LayerDisintegrateAnimation<T extends EntityLivingBase> extends LayerTiledOverlay<T> {
|
||||||
|
|
||||||
private static final int ANIMATION_TICKS = 19; // One less than the max death time
|
private static final int ANIMATION_TICKS = 19; // One less than the max death time
|
||||||
|
|||||||
+2
-1
@@ -11,6 +11,7 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
import net.minecraftforge.client.event.RenderLivingEvent;
|
import net.minecraftforge.client.event.RenderLivingEvent;
|
||||||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Layer used to render the appear/disappear animation for summoned creatures.
|
* Layer used to render the appear/disappear animation for summoned creatures.
|
||||||
@@ -18,7 +19,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|||||||
* @author Electroblob
|
* @author Electroblob
|
||||||
* @since Wizardry 4.3
|
* @since Wizardry 4.3
|
||||||
*/
|
*/
|
||||||
@EventBusSubscriber
|
@EventBusSubscriber(Side.CLIENT)
|
||||||
public class LayerSummonAnimation<T extends EntityLivingBase> extends LayerTiledOverlay<T> {
|
public class LayerSummonAnimation<T extends EntityLivingBase> extends LayerTiledOverlay<T> {
|
||||||
|
|
||||||
private static final int ANIMATION_TICKS = 19;
|
private static final int ANIMATION_TICKS = 19;
|
||||||
|
|||||||
Reference in New Issue
Block a user