Class GlowSplashPotion

All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.command.CommandSender, org.bukkit.entity.Entity, org.bukkit.entity.Projectile, org.bukkit.entity.SplashPotion, org.bukkit.entity.ThrownPotion, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
GlowLingeringPotion

public class GlowSplashPotion extends GlowProjectile implements org.bukkit.entity.SplashPotion
  • Constructor Details

    • GlowSplashPotion

      public GlowSplashPotion(org.bukkit.Location location)
  • Method Details

    • collide

      public void collide(org.bukkit.block.Block block)
      Description copied from class: GlowEntity
      Collide with the target block.
      Specified by:
      collide in class GlowProjectile
      Parameters:
      block - a block whose type Material.isOccluding()
    • collide

      public void collide(org.bukkit.entity.LivingEntity entity)
      Specified by:
      collide in class GlowProjectile
    • getObjectId

      protected int getObjectId()
      Specified by:
      getObjectId in class GlowProjectile
    • getEffects

      public Collection<org.bukkit.potion.PotionEffect> getEffects()
      Specified by:
      getEffects in interface org.bukkit.entity.ThrownPotion
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
      Specified by:
      getItem in interface org.bukkit.entity.ThrownPotion
    • setItem

      public void setItem(org.bukkit.inventory.ItemStack item)
      Specified by:
      setItem in interface org.bukkit.entity.ThrownPotion