Interface Bucketable

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

@NullMarked 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

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

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