Class AreaEffectCloud

All Implemented Interfaces:
CommandSource, EntityAccess, Nameable, ICapabilityProvider, ICapabilitySerializable<CompoundTag>, IForgeEntity, INBTSerializable<CompoundTag>

public class AreaEffectCloud extends Entity
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • TIME_BETWEEN_APPLICATIONS

      private static final int TIME_BETWEEN_APPLICATIONS
      See Also:
      Constant Field Values
    • DATA_RADIUS

      private static final EntityDataAccessor<Float> DATA_RADIUS
    • DATA_COLOR

      private static final EntityDataAccessor<Integer> DATA_COLOR
    • DATA_WAITING

      private static final EntityDataAccessor<Boolean> DATA_WAITING
    • DATA_PARTICLE

      private static final EntityDataAccessor<ParticleOptions> DATA_PARTICLE
    • MAX_RADIUS

      private static final float MAX_RADIUS
      See Also:
      Constant Field Values
    • potion

      private Potion potion
    • effects

      private final List<MobEffectInstance> effects
    • victims

      private final Map<Entity,​Integer> victims
    • duration

      private int duration
    • waitTime

      private int waitTime
    • reapplicationDelay

      private int reapplicationDelay
    • fixedColor

      private boolean fixedColor
    • durationOnUse

      private int durationOnUse
    • radiusOnUse

      private float radiusOnUse
    • radiusPerTick

      private float radiusPerTick
    • owner

      @Nullable private LivingEntity owner
    • ownerUUID

      @Nullable private UUID ownerUUID
  • Constructor Details

    • AreaEffectCloud

      public AreaEffectCloud(EntityType<? extends AreaEffectCloud> p_19704_, Level p_19705_)
    • AreaEffectCloud

      public AreaEffectCloud(Level p_19707_, double p_19708_, double p_19709_, double p_19710_)
  • Method Details

    • defineSynchedData

      protected void defineSynchedData()
      Specified by:
      defineSynchedData in class Entity
    • setRadius

      public void setRadius(float p_19713_)
    • refreshDimensions

      public void refreshDimensions()
      Overrides:
      refreshDimensions in class Entity
    • getRadius

      public float getRadius()
    • setPotion

      public void setPotion(Potion p_19723_)
    • updateColor

      private void updateColor()
    • addEffect

      public void addEffect(MobEffectInstance p_19717_)
    • getColor

      public int getColor()
    • setFixedColor

      public void setFixedColor(int p_19715_)
    • getParticle

      public ParticleOptions getParticle()
    • setParticle

      public void setParticle(ParticleOptions p_19725_)
    • setWaiting

      protected void setWaiting(boolean p_19731_)
    • isWaiting

      public boolean isWaiting()
    • getDuration

      public int getDuration()
    • setDuration

      public void setDuration(int p_19735_)
    • tick

      public void tick()
      Overrides:
      tick in class Entity
    • getRadiusOnUse

      public float getRadiusOnUse()
    • setRadiusOnUse

      public void setRadiusOnUse(float p_19733_)
    • getRadiusPerTick

      public float getRadiusPerTick()
    • setRadiusPerTick

      public void setRadiusPerTick(float p_19739_)
    • getDurationOnUse

      public int getDurationOnUse()
    • setDurationOnUse

      public void setDurationOnUse(int p_146786_)
    • getWaitTime

      public int getWaitTime()
    • setWaitTime

      public void setWaitTime(int p_19741_)
    • setOwner

      public void setOwner(@Nullable LivingEntity p_19719_)
    • getOwner

      @Nullable public LivingEntity getOwner()
    • readAdditionalSaveData

      protected void readAdditionalSaveData(CompoundTag p_19727_)
      Specified by:
      readAdditionalSaveData in class Entity
    • addAdditionalSaveData

      protected void addAdditionalSaveData(CompoundTag p_19737_)
      Specified by:
      addAdditionalSaveData in class Entity
    • onSyncedDataUpdated

      public void onSyncedDataUpdated(EntityDataAccessor<?> p_19729_)
      Overrides:
      onSyncedDataUpdated in class Entity
    • getPotion

      public Potion getPotion()
    • getPistonPushReaction

      public PushReaction getPistonPushReaction()
      Overrides:
      getPistonPushReaction in class Entity
    • getAddEntityPacket

      public Packet<?> getAddEntityPacket()
      Specified by:
      getAddEntityPacket in class Entity
    • getDimensions

      public EntityDimensions getDimensions(Pose p_19721_)
      Overrides:
      getDimensions in class Entity