Class AreaEffectCloud

All Implemented Interfaces:
CommandSource, TraceableEntity, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, INBTSerializable<CompoundTag>

public class AreaEffectCloud extends Entity implements TraceableEntity
  • Field Details

  • 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()
      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_)
      Overrides:
      onSyncedDataUpdated in class Entity
    • getPotion

      public Potion getPotion()
    • getPistonPushReaction

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

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