Class EntityAreaEffectCloud

java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.misc.EntityAreaEffectCloud
All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.misc.AreaEffectCloud

public class EntityAreaEffectCloud extends BaseEntity implements org.cloudburstmc.api.entity.misc.AreaEffectCloud
  • Field Details

    • reapplicationDelay

      protected int reapplicationDelay
    • durationOnUse

      protected int durationOnUse
    • initialRadius

      protected float initialRadius
    • radiusOnUse

      protected float radiusOnUse
    • nextApply

      protected int nextApply
    • cloudEffects

      protected List<CloudEffect> cloudEffects
    • particleColor

      protected int particleColor
    • particleColorSet

      protected boolean particleColorSet
  • Constructor Details

    • EntityAreaEffectCloud

      public EntityAreaEffectCloud(org.cloudburstmc.api.entity.EntityType<?> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • getWaitTime

      public int getWaitTime()
      Specified by:
      getWaitTime in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setWaitTime

      public void setWaitTime(int waitTime)
      Specified by:
      setWaitTime in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getPotionId

      public short getPotionId()
      Specified by:
      getPotionId in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setPotionId

      public void setPotionId(int potionId)
      Specified by:
      setPotionId in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • recalculatePotionColor

      public void recalculatePotionColor()
      Specified by:
      recalculatePotionColor in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getPotionColor

      public int getPotionColor()
      Specified by:
      getPotionColor in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setPotionColor

      public void setPotionColor(int argp)
      Specified by:
      setPotionColor in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setPotionColor

      public void setPotionColor(int alpha, int red, int green, int blue)
      Specified by:
      setPotionColor in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getPickupCount

      public int getPickupCount()
      Specified by:
      getPickupCount in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setPickupCount

      public void setPickupCount(int pickupCount)
      Specified by:
      setPickupCount in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getRadiusChangeOnPickup

      public float getRadiusChangeOnPickup()
      Specified by:
      getRadiusChangeOnPickup in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setRadiusChangeOnPickup

      public void setRadiusChangeOnPickup(float radiusChangeOnPickup)
      Specified by:
      setRadiusChangeOnPickup in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getRadiusPerTick

      public float getRadiusPerTick()
      Specified by:
      getRadiusPerTick in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setRadiusPerTick

      public void setRadiusPerTick(float radiusPerTick)
      Specified by:
      setRadiusPerTick in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getSpawnTime

      public long getSpawnTime()
      Specified by:
      getSpawnTime in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setSpawnTime

      public void setSpawnTime(long spawnTime)
      Specified by:
      setSpawnTime in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getDuration

      public int getDuration()
      Specified by:
      getDuration in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setDuration

      public void setDuration(int duration)
      Specified by:
      setDuration in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getRadius

      public float getRadius()
      Specified by:
      getRadius in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setRadius

      public void setRadius(float radius)
      Specified by:
      setRadius in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • getParticleId

      public int getParticleId()
      Specified by:
      getParticleId in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • setParticleId

      public void setParticleId(int particleId)
      Specified by:
      setParticleId in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud
    • initEntity

      protected void initEntity()
      Overrides:
      initEntity in class BaseEntity
    • loadAdditionalData

      public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
      Overrides:
      loadAdditionalData in class BaseEntity
    • saveAdditionalData

      public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
      Overrides:
      saveAdditionalData in class BaseEntity
    • attack

      public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      attack in class BaseEntity
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      onUpdate in class BaseEntity
    • canCollideWith

      public boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      canCollideWith in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      canCollideWith in class BaseEntity
    • getHeight

      public float getHeight()
      Specified by:
      getHeight in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getHeight in class BaseEntity
    • getWidth

      public float getWidth()
      Specified by:
      getWidth in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getWidth in class BaseEntity
    • getLength

      public float getLength()
      Specified by:
      getLength in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getLength in class BaseEntity
    • getGravity

      public float getGravity()
      Specified by:
      getGravity in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getGravity in class BaseEntity
    • getDrag

      public float getDrag()
      Specified by:
      getDrag in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getDrag in class BaseEntity
    • getCloudEffects

      public List<CloudEffect> getCloudEffects()
      Specified by:
      getCloudEffects in interface org.cloudburstmc.api.entity.misc.AreaEffectCloud