Class AreaEffectCloudEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.AreaEffectCloudEntity
All Implemented Interfaces:
Ownable, CommandOutput, Nameable, EntityLike

public class AreaEffectCloudEntity extends Entity implements Ownable
Mappings:
Namespace Name
official bin
intermediary net/minecraft/class_1295
named net/minecraft/entity/AreaEffectCloudEntity
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lbin;d:Lorg/slf4j/Logger;
      intermediary field_5935 Lnet/minecraft/class_1295;field_5935:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/entity/AreaEffectCloudEntity;LOGGER:Lorg/slf4j/Logger;
    • field_29972

      private static final int field_29972
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbin;e:I
      intermediary field_29972 Lnet/minecraft/class_1295;field_29972:I
      named field_29972 Lnet/minecraft/entity/AreaEffectCloudEntity;field_29972:I
    • RADIUS

      private static final TrackedData<Float> RADIUS
      Mappings:
      Namespace Name Mixin selector
      official f Lbin;f:Laee;
      intermediary field_5938 Lnet/minecraft/class_1295;field_5938:Lnet/minecraft/class_2940;
      named RADIUS Lnet/minecraft/entity/AreaEffectCloudEntity;RADIUS:Lnet/minecraft/entity/data/TrackedData;
    • COLOR

      private static final TrackedData<Integer> COLOR
      Mappings:
      Namespace Name Mixin selector
      official g Lbin;g:Laee;
      intermediary field_5936 Lnet/minecraft/class_1295;field_5936:Lnet/minecraft/class_2940;
      named COLOR Lnet/minecraft/entity/AreaEffectCloudEntity;COLOR:Lnet/minecraft/entity/data/TrackedData;
    • WAITING

      private static final TrackedData<Boolean> WAITING
      Mappings:
      Namespace Name Mixin selector
      official h Lbin;h:Laee;
      intermediary field_5944 Lnet/minecraft/class_1295;field_5944:Lnet/minecraft/class_2940;
      named WAITING Lnet/minecraft/entity/AreaEffectCloudEntity;WAITING:Lnet/minecraft/entity/data/TrackedData;
    • PARTICLE_ID

      private static final TrackedData<ParticleEffect> PARTICLE_ID
      Mappings:
      Namespace Name Mixin selector
      official i Lbin;i:Laee;
      intermediary field_5931 Lnet/minecraft/class_1295;field_5931:Lnet/minecraft/class_2940;
      named PARTICLE_ID Lnet/minecraft/entity/AreaEffectCloudEntity;PARTICLE_ID:Lnet/minecraft/entity/data/TrackedData;
    • MAX_RADIUS

      private static final float MAX_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbin;j:F
      intermediary field_29971 Lnet/minecraft/class_1295;field_29971:F
      named MAX_RADIUS Lnet/minecraft/entity/AreaEffectCloudEntity;MAX_RADIUS:F
    • field_40730

      private static final float field_40730
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lbin;k:F
      intermediary field_40730 Lnet/minecraft/class_1295;field_40730:F
      named field_40730 Lnet/minecraft/entity/AreaEffectCloudEntity;field_40730:F
    • field_40731

      private static final float field_40731
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbin;l:F
      intermediary field_40731 Lnet/minecraft/class_1295;field_40731:F
      named field_40731 Lnet/minecraft/entity/AreaEffectCloudEntity;field_40731:F
    • field_40732

      public static final float field_40732
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbin;b:F
      intermediary field_40732 Lnet/minecraft/class_1295;field_40732:F
      named field_40732 Lnet/minecraft/entity/AreaEffectCloudEntity;field_40732:F
    • field_40733

      public static final float field_40733
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbin;c:F
      intermediary field_40733 Lnet/minecraft/class_1295;field_40733:F
      named field_40733 Lnet/minecraft/entity/AreaEffectCloudEntity;field_40733:F
    • EFFECTS_NBT_KEY

      private static final String EFFECTS_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lbin;m:Ljava/lang/String;
      intermediary field_45738 Lnet/minecraft/class_1295;field_45738:Ljava/lang/String;
      named EFFECTS_NBT_KEY Lnet/minecraft/entity/AreaEffectCloudEntity;EFFECTS_NBT_KEY:Ljava/lang/String;
    • potion

      private Potion potion
      Mappings:
      Namespace Name Mixin selector
      official n Lbin;n:Lclc;
      intermediary field_5933 Lnet/minecraft/class_1295;field_5933:Lnet/minecraft/class_1842;
      named potion Lnet/minecraft/entity/AreaEffectCloudEntity;potion:Lnet/minecraft/potion/Potion;
    • effects

      private final List<StatusEffectInstance> effects
      Mappings:
      Namespace Name Mixin selector
      official o Lbin;o:Ljava/util/List;
      intermediary field_5934 Lnet/minecraft/class_1295;field_5934:Ljava/util/List;
      named effects Lnet/minecraft/entity/AreaEffectCloudEntity;effects:Ljava/util/List;
    • affectedEntities

      private final Map<Entity,Integer> affectedEntities
      Mappings:
      Namespace Name Mixin selector
      official p Lbin;p:Ljava/util/Map;
      intermediary field_5942 Lnet/minecraft/class_1295;field_5942:Ljava/util/Map;
      named affectedEntities Lnet/minecraft/entity/AreaEffectCloudEntity;affectedEntities:Ljava/util/Map;
    • duration

      private int duration
      Mappings:
      Namespace Name Mixin selector
      official q Lbin;q:I
      intermediary field_5939 Lnet/minecraft/class_1295;field_5939:I
      named duration Lnet/minecraft/entity/AreaEffectCloudEntity;duration:I
    • waitTime

      private int waitTime
      Mappings:
      Namespace Name Mixin selector
      official r Lbin;r:I
      intermediary field_5941 Lnet/minecraft/class_1295;field_5941:I
      named waitTime Lnet/minecraft/entity/AreaEffectCloudEntity;waitTime:I
    • reapplicationDelay

      private int reapplicationDelay
      Mappings:
      Namespace Name Mixin selector
      official s Lbin;s:I
      intermediary field_5937 Lnet/minecraft/class_1295;field_5937:I
      named reapplicationDelay Lnet/minecraft/entity/AreaEffectCloudEntity;reapplicationDelay:I
    • customColor

      private boolean customColor
      Mappings:
      Namespace Name Mixin selector
      official t Lbin;t:Z
      intermediary field_5928 Lnet/minecraft/class_1295;field_5928:Z
      named customColor Lnet/minecraft/entity/AreaEffectCloudEntity;customColor:Z
    • durationOnUse

      private int durationOnUse
      Mappings:
      Namespace Name Mixin selector
      official u Lbin;u:I
      intermediary field_5932 Lnet/minecraft/class_1295;field_5932:I
      named durationOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;durationOnUse:I
    • radiusOnUse

      private float radiusOnUse
      Mappings:
      Namespace Name Mixin selector
      official v Lbin;v:F
      intermediary field_5929 Lnet/minecraft/class_1295;field_5929:F
      named radiusOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;radiusOnUse:F
    • radiusGrowth

      private float radiusGrowth
      Mappings:
      Namespace Name Mixin selector
      official aE Lbin;aE:F
      intermediary field_5930 Lnet/minecraft/class_1295;field_5930:F
      named radiusGrowth Lnet/minecraft/entity/AreaEffectCloudEntity;radiusGrowth:F
    • owner

      Mappings:
      Namespace Name Mixin selector
      official aF Lbin;aF:Lbjg;
      intermediary field_5943 Lnet/minecraft/class_1295;field_5943:Lnet/minecraft/class_1309;
      named owner Lnet/minecraft/entity/AreaEffectCloudEntity;owner:Lnet/minecraft/entity/LivingEntity;
    • ownerUuid

      @Nullable private @Nullable UUID ownerUuid
      Mappings:
      Namespace Name Mixin selector
      official aG Lbin;aG:Ljava/util/UUID;
      intermediary field_5940 Lnet/minecraft/class_1295;field_5940:Ljava/util/UUID;
      named ownerUuid Lnet/minecraft/entity/AreaEffectCloudEntity;ownerUuid:Ljava/util/UUID;
  • Constructor Details

    • AreaEffectCloudEntity

      public AreaEffectCloudEntity(EntityType<? extends AreaEffectCloudEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbiq;<init>(Lbiu;Lcpv;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • AreaEffectCloudEntity

      public AreaEffectCloudEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbin;<init>(Lcpv;DDD)V
      intermediary <init> Lnet/minecraft/class_1295;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/AreaEffectCloudEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbiq;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • setRadius

      public void setRadius(float radius)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(F)V
      intermediary method_5603 Lnet/minecraft/class_1295;method_5603(F)V
      named setRadius Lnet/minecraft/entity/AreaEffectCloudEntity;setRadius(F)V
    • calculateDimensions

      public void calculateDimensions()
      Calculates and sets the dimension (bounding box) of the entity and refreshes its position.
      Overrides:
      calculateDimensions in class Entity
      Mappings:
      Namespace Name Mixin selector
      official i_ Lbiq;i_()V
      intermediary method_18382 Lnet/minecraft/class_1297;method_18382()V
      named calculateDimensions Lnet/minecraft/entity/Entity;calculateDimensions()V
    • getRadius

      public float getRadius()
      Mappings:
      Namespace Name Mixin selector
      official h Lbin;h()F
      intermediary method_5599 Lnet/minecraft/class_1295;method_5599()F
      named getRadius Lnet/minecraft/entity/AreaEffectCloudEntity;getRadius()F
    • setPotion

      public void setPotion(Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(Lclc;)V
      intermediary method_5612 Lnet/minecraft/class_1295;method_5612(Lnet/minecraft/class_1842;)V
      named setPotion Lnet/minecraft/entity/AreaEffectCloudEntity;setPotion(Lnet/minecraft/potion/Potion;)V
    • updateColor

      private void updateColor()
      Mappings:
      Namespace Name Mixin selector
      official w Lbin;w()V
      intermediary method_5597 Lnet/minecraft/class_1295;method_5597()V
      named updateColor Lnet/minecraft/entity/AreaEffectCloudEntity;updateColor()V
    • addEffect

      public void addEffect(StatusEffectInstance effect)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(Lbid;)V
      intermediary method_5610 Lnet/minecraft/class_1295;method_5610(Lnet/minecraft/class_1293;)V
      named addEffect Lnet/minecraft/entity/AreaEffectCloudEntity;addEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
    • getColor

      public int getColor()
      Mappings:
      Namespace Name Mixin selector
      official i Lbin;i()I
      intermediary method_5606 Lnet/minecraft/class_1295;method_5606()I
      named getColor Lnet/minecraft/entity/AreaEffectCloudEntity;getColor()I
    • setColor

      public void setColor(int rgb)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(I)V
      intermediary method_5602 Lnet/minecraft/class_1295;method_5602(I)V
      named setColor Lnet/minecraft/entity/AreaEffectCloudEntity;setColor(I)V
    • getParticleType

      public ParticleEffect getParticleType()
      Mappings:
      Namespace Name Mixin selector
      official j Lbin;j()Lit;
      intermediary method_5600 Lnet/minecraft/class_1295;method_5600()Lnet/minecraft/class_2394;
      named getParticleType Lnet/minecraft/entity/AreaEffectCloudEntity;getParticleType()Lnet/minecraft/particle/ParticleEffect;
    • setParticleType

      public void setParticleType(ParticleEffect particle)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(Lit;)V
      intermediary method_5608 Lnet/minecraft/class_1295;method_5608(Lnet/minecraft/class_2394;)V
      named setParticleType Lnet/minecraft/entity/AreaEffectCloudEntity;setParticleType(Lnet/minecraft/particle/ParticleEffect;)V
    • setWaiting

      protected void setWaiting(boolean waiting)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(Z)V
      intermediary method_5598 Lnet/minecraft/class_1295;method_5598(Z)V
      named setWaiting Lnet/minecraft/entity/AreaEffectCloudEntity;setWaiting(Z)V
    • isWaiting

      public boolean isWaiting()
      Mappings:
      Namespace Name Mixin selector
      official k Lbin;k()Z
      intermediary method_5611 Lnet/minecraft/class_1295;method_5611()Z
      named isWaiting Lnet/minecraft/entity/AreaEffectCloudEntity;isWaiting()Z
    • getDuration

      public int getDuration()
      Mappings:
      Namespace Name Mixin selector
      official m Lbin;m()I
      intermediary method_5605 Lnet/minecraft/class_1295;method_5605()I
      named getDuration Lnet/minecraft/entity/AreaEffectCloudEntity;getDuration()I
    • setDuration

      public void setDuration(int duration)
      Mappings:
      Namespace Name Mixin selector
      official b Lbin;b(I)V
      intermediary method_5604 Lnet/minecraft/class_1295;method_5604(I)V
      named setDuration Lnet/minecraft/entity/AreaEffectCloudEntity;setDuration(I)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbiq;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • getRadiusOnUse

      public float getRadiusOnUse()
      Mappings:
      Namespace Name Mixin selector
      official o Lbin;o()F
      intermediary method_35044 Lnet/minecraft/class_1295;method_35044()F
      named getRadiusOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;getRadiusOnUse()F
    • setRadiusOnUse

      public void setRadiusOnUse(float radiusOnUse)
      Mappings:
      Namespace Name Mixin selector
      official b Lbin;b(F)V
      intermediary method_5609 Lnet/minecraft/class_1295;method_5609(F)V
      named setRadiusOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;setRadiusOnUse(F)V
    • getRadiusGrowth

      public float getRadiusGrowth()
      Mappings:
      Namespace Name Mixin selector
      official p Lbin;p()F
      intermediary method_35045 Lnet/minecraft/class_1295;method_35045()F
      named getRadiusGrowth Lnet/minecraft/entity/AreaEffectCloudEntity;getRadiusGrowth()F
    • setRadiusGrowth

      public void setRadiusGrowth(float radiusGrowth)
      Mappings:
      Namespace Name Mixin selector
      official c Lbin;c(F)V
      intermediary method_5596 Lnet/minecraft/class_1295;method_5596(F)V
      named setRadiusGrowth Lnet/minecraft/entity/AreaEffectCloudEntity;setRadiusGrowth(F)V
    • getDurationOnUse

      public int getDurationOnUse()
      Mappings:
      Namespace Name Mixin selector
      official q Lbin;q()I
      intermediary method_35046 Lnet/minecraft/class_1295;method_35046()I
      named getDurationOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;getDurationOnUse()I
    • setDurationOnUse

      public void setDurationOnUse(int durationOnUse)
      Mappings:
      Namespace Name Mixin selector
      official c Lbin;c(I)V
      intermediary method_35043 Lnet/minecraft/class_1295;method_35043(I)V
      named setDurationOnUse Lnet/minecraft/entity/AreaEffectCloudEntity;setDurationOnUse(I)V
    • getWaitTime

      public int getWaitTime()
      Mappings:
      Namespace Name Mixin selector
      official r Lbin;r()I
      intermediary method_35047 Lnet/minecraft/class_1295;method_35047()I
      named getWaitTime Lnet/minecraft/entity/AreaEffectCloudEntity;getWaitTime()I
    • setWaitTime

      public void setWaitTime(int waitTime)
      Mappings:
      Namespace Name Mixin selector
      official d Lbin;d(I)V
      intermediary method_5595 Lnet/minecraft/class_1295;method_5595(I)V
      named setWaitTime Lnet/minecraft/entity/AreaEffectCloudEntity;setWaitTime(I)V
    • setOwner

      public void setOwner(@Nullable @Nullable LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official a Lbin;a(Lbjg;)V
      intermediary method_5607 Lnet/minecraft/class_1295;method_5607(Lnet/minecraft/class_1309;)V
      named setOwner Lnet/minecraft/entity/AreaEffectCloudEntity;setOwner(Lnet/minecraft/entity/LivingEntity;)V
    • getOwner

      @Nullable public @Nullable LivingEntity getOwner()
      Specified by:
      getOwner in interface Ownable
      Mappings:
      Namespace Name Mixin selector
      official s Lbin;s()Lbjg;
      intermediary method_5601 Lnet/minecraft/class_1295;method_5601()Lnet/minecraft/class_1309;
      named getOwner Lnet/minecraft/entity/AreaEffectCloudEntity;getOwner()Lnet/minecraft/entity/LivingEntity;
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Specified by:
      readCustomDataFromNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lqw;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Specified by:
      writeCustomDataToNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(Lqw;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Laee;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • getPotion

      public Potion getPotion()
      Mappings:
      Namespace Name Mixin selector
      official t Lbin;t()Lclc;
      intermediary method_35048 Lnet/minecraft/class_1295;method_35048()Lnet/minecraft/class_1842;
      named getPotion Lnet/minecraft/entity/AreaEffectCloudEntity;getPotion()Lnet/minecraft/potion/Potion;
    • getPistonBehavior

      public PistonBehavior getPistonBehavior()
      Returns the behavior of the piston for this entity.

      This is PistonBehavior.NORMAL by default. AreaEffectCloudEntity, MarkerEntity, and marker ArmorStandEntity return PistonBehavior.IGNORE, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated like PistonBehavior.NORMAL.

      Overrides:
      getPistonBehavior in class Entity
      Returns:
      the behavior of the piston for this entity
      Mappings:
      Namespace Name Mixin selector
      official q_ Lbiq;q_()Lear;
      intermediary method_5657 Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
      named getPistonBehavior Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
    • getDimensions

      public EntityDimensions getDimensions(EntityPose pose)
      Returns the dimensions of the entity with the given pose.
      Overrides:
      getDimensions in class Entity
      Returns:
      the dimensions of the entity with the given pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lbjs;)Lbir;
      intermediary method_18377 Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      named getDimensions Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;