Interface Bucketable

All Superinterfaces:
Audience, CommandSender, DataComponentView, 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.
Since:
1.18.1
  • Method Details

    • isFromBucket

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

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

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

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