Interface Bucketable

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Axolotl, Cod, Fish, PufferFish, Salmon, Tadpole, TropicalFish

public interface Bucketable extends Entity
Represents an entity that can be bucketed.
  • Method Details

    • isFromBucket

      boolean isFromBucket()
      Gets if this entity originated from a bucket.
      Returns:
      originated from bucket
    • setFromBucket

      void setFromBucket(boolean fromBucket)
      Sets if this entity originated from a bucket.
      Parameters:
      fromBucket - is from a bucket
    • getBaseBucketItem

      @NotNull @NotNull ItemStack getBaseBucketItem()
      Gets the base itemstack of this entity in a bucket form.
      Returns:
      bucket form
    • getPickupSound

      @NotNull @NotNull Sound getPickupSound()
      Gets the sound that is played when this entity is picked up in a bucket.
      Returns:
      bucket pickup sound