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 bfa
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 Lbfa;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 Lbfa;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 Lbfa;f:Laby;
      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 Lbfa;g:Laby;
      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 Lbfa;h:Laby;
      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 Lbfa;i:Laby;
      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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;c:F
      intermediary field_40733 Lnet/minecraft/class_1295;field_40733:F
      named field_40733 Lnet/minecraft/entity/AreaEffectCloudEntity;field_40733:F
    • potion

      private Potion potion
      Mappings:
      Namespace Name Mixin selector
      official m Lbfa;m:Lchp;
      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 n Lbfa;n: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 o Lbfa;o: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 p Lbfa;p: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 q Lbfa;q: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 r Lbfa;r: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 s Lbfa;s: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 t Lbfa;t: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 u Lbfa;u: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 aB Lbfa;aB: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 aC Lbfa;aC:Lbft;
      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 aD Lbfa;aD: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> Lbfd;<init>(Lbfh;Lcmf;)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> Lbfa;<init>(Lcmf;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_ Lbfd;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 Lbfa;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 d_ Lbfd;d_()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 Lbfa;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 Lbfa;a(Lchp;)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 Lbfa;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 Lbfa;a(Lbeu;)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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfd;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;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 Lbfa;a(Lbft;)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 Lbfa;s()Lbft;
      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 has 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 Lbfd;a(Lqr;)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 has 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 Lbfd;b(Lqr;)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 Lbfd;a(Laby;)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 Lbfa;t()Lchp;
      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 C_ Lbfd;C_()Ldxb;
      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 Lbfd;a(Lbgf;)Lbfe;
      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;