ForgePatch/common/net/minecraftforge/event/entity/player/BonemealEvent.java
LexManos 31a908b754 More patches converted.
Refactored some of the events to be a better hiarachy.
2012-08-06 15:07:53 -07:00

40 lines
807 B
Java

package net.minecraftforge.event.entity.player;
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;
}
}