Class CloudEffect

java.lang.Object
org.cloudburstmc.api.potion.Effect
org.cloudburstmc.server.potion.CloudEffect

public class CloudEffect extends org.cloudburstmc.api.potion.Effect
author: MagicDroidX Nukkit Project
  • Constructor Details

    • CloudEffect

      public CloudEffect(@NonNull @NonNull org.cloudburstmc.api.potion.EffectType type)
  • Method Details

    • fromNBT

      public static org.cloudburstmc.api.potion.Effect fromNBT(com.nukkitx.nbt.NbtMap tag)
    • fromNBT

      public static org.cloudburstmc.api.potion.Effect fromNBT(byte id, boolean ambient, int amplifier, boolean visible, int duration)
    • getName

      public String getName()
    • getNetworkId

      public byte getNetworkId()
    • canTick

      public boolean canTick()
      Specified by:
      canTick in class org.cloudburstmc.api.potion.Effect
    • applyEffect

      public void applyEffect(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      applyEffect in class org.cloudburstmc.api.potion.Effect
    • add

      public void add(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      add in class org.cloudburstmc.api.potion.Effect
    • remove

      public void remove(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      remove in class org.cloudburstmc.api.potion.Effect
    • createTag

      public com.nukkitx.nbt.NbtMap createTag()
    • setDuration

      public CloudEffect setDuration(int ticks)
      Overrides:
      setDuration in class org.cloudburstmc.api.potion.Effect
    • setAmplifier

      public CloudEffect setAmplifier(int amplifier)
      Overrides:
      setAmplifier in class org.cloudburstmc.api.potion.Effect
    • setVisible

      public CloudEffect setVisible(boolean visible)
      Overrides:
      setVisible in class org.cloudburstmc.api.potion.Effect
    • setAmbient

      public CloudEffect setAmbient(boolean ambient)
      Overrides:
      setAmbient in class org.cloudburstmc.api.potion.Effect