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
Modifier and Type | Field and Description |
---|---|
private ItemStack |
current |
private ItemStack |
result |
private RayTraceResult |
target |
private World |
world |
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
private final ItemStack current
private final World world
@Nullable private final RayTraceResult target
private ItemStack result
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)