Class AreaEffectCloud

All Implemented Interfaces:
CommandSource, SyncedDataHolder, TraceableEntity, EntityAccess, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension, INBTSerializable<CompoundTag>

public class AreaEffectCloud extends Entity implements TraceableEntity
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TIME_BETWEEN_APPLICATIONS

      private static final int TIME_BETWEEN_APPLICATIONS
      See Also:
    • DATA_RADIUS

      private static final EntityDataAccessor<Float> DATA_RADIUS
    • 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:
    • MINIMAL_RADIUS

      private static final float MINIMAL_RADIUS
      See Also:
    • DEFAULT_RADIUS

      private static final float DEFAULT_RADIUS
      See Also:
    • DEFAULT_WIDTH

      public static final float DEFAULT_WIDTH
      See Also:
    • HEIGHT

      public static final float HEIGHT
      See Also:
    • potionContents

      private PotionContents potionContents
    • victims

      private final Map<Entity,Integer> victims
    • duration

      private int duration
    • waitTime

      private int waitTime
    • reapplicationDelay

      private int reapplicationDelay
    • 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(SynchedEntityData.Builder p_326332_)
      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()
    • setPotionContents

      public void setPotionContents(PotionContents p_330869_)
    • updateColor

      private void updateColor()
    • addEffect

      public void addEffect(MobEffectInstance p_19717_)
    • 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()
      Specified by:
      getOwner in interface TraceableEntity
    • 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_)
      Specified by:
      onSyncedDataUpdated in interface SyncedDataHolder
      Overrides:
      onSyncedDataUpdated in class Entity
    • getPistonPushReaction

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

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