2012-08-06 22:07:53 +00:00
|
|
|
package net.minecraftforge.event.entity.player;
|
2012-08-06 02:15:13 +00:00
|
|
|
|
|
|
|
import net.minecraft.src.EntityPlayer;
|
|
|
|
import net.minecraft.src.World;
|
|
|
|
|
|
|
|
public class BonemealEvent extends PlayerEvent
|
|
|
|
{
|
|
|
|
public final World world;
|
|
|
|
public final int ID;
|
|
|
|
public final int X;
|
|
|
|
public final int Y;
|
|
|
|
public final int Z;
|
|
|
|
private boolean handeled = false;
|
|
|
|
|
|
|
|
public BonemealEvent(EntityPlayer player, World world, int id, int x, int y, int z)
|
|
|
|
{
|
|
|
|
super(player);
|
|
|
|
this.world = world;
|
|
|
|
this.ID = id;
|
|
|
|
this.X = x;
|
|
|
|
this.Y = y;
|
|
|
|
this.Z = z;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCancelable()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHandeled()
|
|
|
|
{
|
|
|
|
handeled = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isHandeled()
|
|
|
|
{
|
|
|
|
return handeled;
|
|
|
|
}
|
|
|
|
}
|