Class CloudPotion

java.lang.Object
org.cloudburstmc.api.potion.Potion
org.cloudburstmc.server.potion.CloudPotion

public class CloudPotion extends org.cloudburstmc.api.potion.Potion
author: MagicDroidX Nukkit Project
  • Constructor Summary

    Constructors
    Constructor
    Description
    CloudPotion​(org.cloudburstmc.api.potion.PotionType type, boolean splash)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyPotion​(org.cloudburstmc.api.entity.Entity entity)
     
    void
    applyPotion​(org.cloudburstmc.api.entity.Entity entity, double health)
     
    org.cloudburstmc.api.potion.Effect
     

    Methods inherited from class org.cloudburstmc.api.potion.Potion

    getDuration, getLevel, getType, isInstant, isSplash, setSplash

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CloudPotion

      public CloudPotion(org.cloudburstmc.api.potion.PotionType type, boolean splash)
  • Method Details

    • getEffect

      public org.cloudburstmc.api.potion.Effect getEffect()
      Specified by:
      getEffect in class org.cloudburstmc.api.potion.Potion
    • applyPotion

      public void applyPotion(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      applyPotion in class org.cloudburstmc.api.potion.Potion
    • applyPotion

      public void applyPotion(org.cloudburstmc.api.entity.Entity entity, double health)