2012-08-06 10:35:57 +00:00
|
|
|
package net.minecraftforge.event.entity;
|
|
|
|
|
|
|
|
import net.minecraft.src.EntityPlayer;
|
|
|
|
import net.minecraft.src.ItemStack;
|
|
|
|
import net.minecraft.src.World;
|
2012-08-07 08:24:06 +00:00
|
|
|
import net.minecraftforge.event.Cancelable;
|
2012-08-06 22:07:53 +00:00
|
|
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
2012-08-06 10:35:57 +00:00
|
|
|
|
2012-08-07 08:24:06 +00:00
|
|
|
@Cancelable
|
2012-08-06 10:35:57 +00:00
|
|
|
public class UseHoeEvent extends PlayerEvent
|
|
|
|
{
|
|
|
|
|
|
|
|
public final ItemStack current;
|
|
|
|
public final World world;
|
|
|
|
public final int x;
|
|
|
|
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);
|
|
|
|
this.current = current;
|
|
|
|
this.world = world;
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.z = z;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isHandeled()
|
|
|
|
{
|
|
|
|
return handeled;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHandeled()
|
|
|
|
{
|
|
|
|
handeled = true;
|
|
|
|
}
|
|
|
|
}
|