Class PlayerBucketFishEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerBucketEntityEvent
org.bukkit.event.player.PlayerBucketFishEvent
- All Implemented Interfaces:
Cancellable
Deprecated.
This event is called whenever a player attempts to put a fish in a bucket.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerBucketFishEvent(Player player, Fish fish, ItemStack waterBucket, ItemStack fishBucket, EquipmentSlot hand) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the fish involved with this event.Deprecated.Deprecated.Methods inherited from class PlayerBucketEntityEvent
getEntityBucket, getHand, getHandlerList, getHandlers, getOriginalBucket, isCancelled, setCancelledMethods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerBucketFishEvent
public PlayerBucketFishEvent(@NotNull Player player, @NotNull Fish fish, @NotNull ItemStack waterBucket, @NotNull ItemStack fishBucket, @NotNull EquipmentSlot hand) Deprecated.
-
-
Method Details
-
getEntity
Deprecated.Gets the fish involved with this event.- Overrides:
getEntityin classPlayerBucketEntityEvent- Returns:
- The fish involved with this event
-
getWaterBucket
Deprecated.Gets the bucket used. This refers to the bucket clicked with, ieMaterial.WATER_BUCKET.- Returns:
- The used bucket
-
getFishBucket
Deprecated.Gets the bucket that the fish will be put into. This refers to the bucket with the fish, ieMaterial.PUFFERFISH_BUCKET.- Returns:
- The bucket that the fish will be put into
-
PlayerBucketEntityEvent