public class FillBucketEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private ItemStack |
current |
private ItemStack |
result |
private RayTraceResult |
target |
private World |
world |
Constructor and Description |
---|
FillBucketEvent(PlayerEntity 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) |
getPlayer
getEntityLiving
getEntity
private final ItemStack current
private final World world
@Nullable private final RayTraceResult target
private ItemStack result
public FillBucketEvent(PlayerEntity 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)