Class AreaEffectCloudEntity

All Implemented Interfaces:
ICommandSource, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>

public class AreaEffectCloudEntity extends Entity
  • Field Details

    • LOGGER

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

      private static final DataParameter<Float> DATA_RADIUS
    • DATA_COLOR

      private static final DataParameter<Integer> DATA_COLOR
    • DATA_WAITING

      private static final DataParameter<Boolean> DATA_WAITING
    • DATA_PARTICLE

      private static final DataParameter<IParticleData> DATA_PARTICLE
    • potion

      private Potion potion
    • effects

      private final List<EffectInstance> 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

      private LivingEntity owner
    • ownerUUID

      private UUID ownerUUID
  • Constructor Details

    • AreaEffectCloudEntity

      public AreaEffectCloudEntity(EntityType<? extends AreaEffectCloudEntity> p_i50389_1_, World p_i50389_2_)
    • AreaEffectCloudEntity

      public AreaEffectCloudEntity(World p_i46810_1_, double p_i46810_2_, double p_i46810_4_, double p_i46810_6_)
  • Method Details

    • defineSynchedData

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

      public void setRadius(float p_184483_1_)
    • refreshDimensions

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

      public float getRadius()
    • setPotion

      public void setPotion(Potion p_184484_1_)
    • updateColor

      private void updateColor()
    • addEffect

      public void addEffect(EffectInstance p_184496_1_)
    • getColor

      public int getColor()
    • setFixedColor

      public void setFixedColor(int p_184482_1_)
    • getParticle

      public IParticleData getParticle()
    • setParticle

      public void setParticle(IParticleData p_195059_1_)
    • setWaiting

      protected void setWaiting(boolean p_184488_1_)
    • isWaiting

      public boolean isWaiting()
    • getDuration

      public int getDuration()
    • setDuration

      public void setDuration(int p_184486_1_)
    • tick

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

      public void setRadiusOnUse(float p_184495_1_)
    • setRadiusPerTick

      public void setRadiusPerTick(float p_184487_1_)
    • setWaitTime

      public void setWaitTime(int p_184485_1_)
    • setOwner

      public void setOwner(@Nullable LivingEntity p_184481_1_)
    • getOwner

      @Nullable public LivingEntity getOwner()
    • readAdditionalSaveData

      protected void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Specified by:
      readAdditionalSaveData in class Entity
    • addAdditionalSaveData

      protected void addAdditionalSaveData(CompoundNBT p_213281_1_)
      Specified by:
      addAdditionalSaveData in class Entity
    • onSyncedDataUpdated

      public void onSyncedDataUpdated(DataParameter<?> p_184206_1_)
      Overrides:
      onSyncedDataUpdated in class Entity
    • getPistonPushReaction

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

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

      public EntitySize getDimensions(Pose p_213305_1_)
      Overrides:
      getDimensions in class Entity