ForgePatch/common/net/minecraftforge/event/entity/UseHoeEvent.java

40 lines
895 B
Java

package net.minecraftforge.event.entity;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.ItemStack;
import net.minecraft.src.World;
import net.minecraftforge.event.Cancelable;
import net.minecraftforge.event.entity.player.PlayerEvent;
@Cancelable
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;
}
}