2012-08-06 22:07:53 +00:00
|
|
|
package net.minecraftforge.event.entity.player;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
|
|
|
import net.minecraft.src.EntityPlayer;
|
|
|
|
import net.minecraft.src.ItemStack;
|
|
|
|
import net.minecraft.src.MovingObjectPosition;
|
|
|
|
import net.minecraft.src.World;
|
2012-08-07 08:24:06 +00:00
|
|
|
import net.minecraftforge.event.Cancelable;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
2012-08-07 08:24:06 +00:00
|
|
|
@Cancelable
|
2012-08-05 10:20:07 +00:00
|
|
|
public class FillBucketEvent extends PlayerEvent
|
|
|
|
{
|
2012-08-06 22:07:53 +00:00
|
|
|
public final ItemStack current;
|
|
|
|
public final World world;
|
|
|
|
public final MovingObjectPosition target;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
2012-08-06 22:07:53 +00:00
|
|
|
public ItemStack result;
|
2012-08-05 10:20:07 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|