mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Fix warnings in Forge codebase.
This commit is contained in:
1 parent
eeeb4d37e8
commit
baf95e747a
84 files changed
+94
-246
No files matched your search
@@ -2,7 +2,6 @@ package net.minecraftforge.event.entity;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityEvent extends Event
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ package net.minecraftforge.event.entity.item;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraftforge.event.entity.EntityEvent;
|
||||
|
||||
/**
|
||||
* Event that is fired when an EntityItem's age has reached its maximum
|
||||
|
||||
@@ -3,7 +3,6 @@ package net.minecraftforge.event.entity.item;
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraftforge.event.entity.EntityEvent;
|
||||
|
||||
/**
|
||||
* Event that is fired whenever a player tosses (Q) an item or drag-n-drops a
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package net.minecraftforge.event.entity.living;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package net.minecraftforge.event.entity.living;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event.HasResult;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package net.minecraftforge.event.entity.living;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityZombie;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.minecraftforge.event.entity.minecart;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityMinecart;
|
||||
import net.minecraftforge.event.entity.EntityEvent;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ package net.minecraftforge.event.entity.player;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
@@ -20,9 +19,7 @@ public class EntityItemPickupEvent extends PlayerEvent
|
||||
*
|
||||
* setResult(ALLOW) is the same as the old setHandled()
|
||||
*/
|
||||
|
||||
public final EntityItem item;
|
||||
private boolean handled = false;
|
||||
|
||||
public EntityItemPickupEvent(EntityPlayer player, EntityItem item)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ package net.minecraftforge.event.entity.player;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraftforge.event.entity.living.LivingEvent;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.minecraftforge.event.entity.player;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
package net.minecraftforge.event.entity.player;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
import static cpw.mods.fml.common.eventhandler.Event.Result;
|
||||
import static cpw.mods.fml.common.eventhandler.Event.Result.*;
|
||||
|
||||
@Cancelable
|
||||
|
||||
@@ -26,8 +26,6 @@ public class UseHoeEvent extends PlayerEvent
|
||||
public final int y;
|
||||
public final int z;
|
||||
|
||||
private boolean handeled = false;
|
||||
|
||||
public UseHoeEvent(EntityPlayer player, ItemStack current, World world, int x, int y, int z)
|
||||
{
|
||||
super(player);
|
||||
|
||||
Reference in new issue
Block a user