public class FillBucketEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
FillBucketEvent(EntityPlayer player,
ItemStack current,
World world,
RayTraceResult target) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
getEmptyBucket() |
ItemStack |
getFilledBucket() |
RayTraceResult |
getTarget() |
World |
getWorld() |
void |
setFilledBucket(ItemStack bucket) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public FillBucketEvent(EntityPlayer player, @Nonnull ItemStack current, World world, @Nullable RayTraceResult target)
@Nonnull public ItemStack getEmptyBucket()
public World getWorld()
@Nullable public RayTraceResult getTarget()
@Nonnull public ItemStack getFilledBucket()
public void setFilledBucket(@Nonnull ItemStack bucket)