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, net.kyori.adventure.sound.Sound.Source.Provider
All Known Subinterfaces:
Axolotl, Cod, Fish, PufferFish, Salmon, SchoolableFish, SulfurCube, 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