Class EvokerFangsEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.mob.EvokerFangsEntity
All Implemented Interfaces:
DataTracked, Ownable, ScoreHolder, Nameable, EntityLike

public class EvokerFangsEntity extends Entity implements Ownable
Mappings:
Namespace Name
named net/minecraft/entity/mob/EvokerFangsEntity
intermediary net/minecraft/class_1669
official cqh
  • Field Details

    • field_30662

      public static final int field_30662
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30662 Lnet/minecraft/entity/mob/EvokerFangsEntity;field_30662:I
      intermediary field_30662 Lnet/minecraft/class_1669;field_30662:I
      official a Lcqh;a:I
    • field_30663

      public static final int field_30663
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30663 Lnet/minecraft/entity/mob/EvokerFangsEntity;field_30663:I
      intermediary field_30663 Lnet/minecraft/class_1669;field_30663:I
      official b Lcqh;b:I
    • field_30664

      public static final int field_30664
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30664 Lnet/minecraft/entity/mob/EvokerFangsEntity;field_30664:I
      intermediary field_30664 Lnet/minecraft/class_1669;field_30664:I
      official c Lcqh;c:I
    • warmup

      private int warmup
      Mappings:
      Namespace Name Mixin selector
      named warmup Lnet/minecraft/entity/mob/EvokerFangsEntity;warmup:I
      intermediary field_7609 Lnet/minecraft/class_1669;field_7609:I
      official d Lcqh;d:I
    • startedAttack

      private boolean startedAttack
      Mappings:
      Namespace Name Mixin selector
      named startedAttack Lnet/minecraft/entity/mob/EvokerFangsEntity;startedAttack:Z
      intermediary field_7610 Lnet/minecraft/class_1669;field_7610:Z
      official e Lcqh;e:Z
    • ticksLeft

      private int ticksLeft
      Mappings:
      Namespace Name Mixin selector
      named ticksLeft Lnet/minecraft/entity/mob/EvokerFangsEntity;ticksLeft:I
      intermediary field_7607 Lnet/minecraft/class_1669;field_7607:I
      official f Lcqh;f:I
    • playingAnimation

      private boolean playingAnimation
      Mappings:
      Namespace Name Mixin selector
      named playingAnimation Lnet/minecraft/entity/mob/EvokerFangsEntity;playingAnimation:Z
      intermediary field_7608 Lnet/minecraft/class_1669;field_7608:Z
      official g Lcqh;g:Z
    • owner

      Mappings:
      Namespace Name Mixin selector
      named owner Lnet/minecraft/entity/mob/EvokerFangsEntity;owner:Lnet/minecraft/entity/LivingEntity;
      intermediary field_7605 Lnet/minecraft/class_1669;field_7605:Lnet/minecraft/class_1309;
      official h Lcqh;h:Lbwf;
    • ownerUuid

      @Nullable private @Nullable UUID ownerUuid
      Mappings:
      Namespace Name Mixin selector
      named ownerUuid Lnet/minecraft/entity/mob/EvokerFangsEntity;ownerUuid:Ljava/util/UUID;
      intermediary field_7606 Lnet/minecraft/class_1669;field_7606:Ljava/util/UUID;
      official i Lcqh;i:Ljava/util/UUID;
  • Constructor Details

    • EvokerFangsEntity

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

      public EvokerFangsEntity(World world, double x, double y, double z, float yaw, int warmup, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/mob/EvokerFangsEntity;<init>(Lnet/minecraft/world/World;DDDFILnet/minecraft/entity/LivingEntity;)V
      intermediary <init> Lnet/minecraft/class_1669;<init>(Lnet/minecraft/class_1937;DDDFILnet/minecraft/class_1309;)V
      official <init> Lcqh;<init>(Ldhh;DDDFILbwf;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbvj;a(Lalg$a;)V
    • setOwner

      public void setOwner(@Nullable @Nullable LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      named setOwner Lnet/minecraft/entity/mob/EvokerFangsEntity;setOwner(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_7473 Lnet/minecraft/class_1669;method_7473(Lnet/minecraft/class_1309;)V
      official a Lcqh;a(Lbwf;)V
    • getOwner

      @Nullable public @Nullable LivingEntity getOwner()
      Specified by:
      getOwner in interface Ownable
      Mappings:
      Namespace Name Mixin selector
      named getOwner Lnet/minecraft/entity/mob/EvokerFangsEntity;getOwner()Lnet/minecraft/entity/LivingEntity;
      intermediary method_7470 Lnet/minecraft/class_1669;method_7470()Lnet/minecraft/class_1309;
      official l Lcqh;l()Lbwf;
    • 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
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)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
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to Entity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • damage

      private void damage(LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/mob/EvokerFangsEntity;damage(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_7471 Lnet/minecraft/class_1669;method_7471(Lnet/minecraft/class_1309;)V
      official c Lcqh;c(Lbwf;)V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class Entity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbvj;b(B)V
    • getAnimationProgress

      public float getAnimationProgress(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getAnimationProgress Lnet/minecraft/entity/mob/EvokerFangsEntity;getAnimationProgress(F)F
      intermediary method_7472 Lnet/minecraft/class_1669;method_7472(F)F
      official a Lcqh;a(F)F
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of

      invalid reference
      #isInvulnerableTo
      and return early.
      Specified by:
      damage in class Entity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbvj;a(Lash;Lbtz;F)Z