ForgePatch/common/net/minecraftforge/event/entity/player/FillBucketEvent.java

37 lines
882 B
Java
Raw Normal View History

package net.minecraftforge.event.entity.player;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.ItemStack;
import net.minecraft.src.MovingObjectPosition;
import net.minecraft.src.World;
import net.minecraftforge.event.Cancelable;
@Cancelable
public class FillBucketEvent extends PlayerEvent
{
public final ItemStack current;
public final World world;
public final MovingObjectPosition target;
public ItemStack result;
private boolean handeled = false;
public FillBucketEvent(EntityPlayer player, ItemStack current, World world, MovingObjectPosition target)
{
super(player);
this.current = current;
this.world = world;
this.target = target;
}
public boolean isHandeled()
{
return handeled;
}
public void setHandeled()
{
handeled = true;
}
}