Interface Bucketable

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, DataComponentView, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, net.kyori.adventure.pointer.Pointered, ServerOperator, net.kyori.adventure.sound.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