Class EvokerFangsEntity

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

public class EvokerFangsEntity extends Entity implements Ownable
Mappings:
Namespace Name
named net/minecraft/entity/mob/EvokerFangsEntity
intermediary net/minecraft/class_1669
official cvg
  • 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 Lcvg;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 Lcvg;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 Lcvg;c:I
    • DEFAULT_WARMUP

      private static final int DEFAULT_WARMUP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_WARMUP Lnet/minecraft/entity/mob/EvokerFangsEntity;DEFAULT_WARMUP:I
      intermediary field_57737 Lnet/minecraft/class_1669;field_57737:I
      official d Lcvg;d: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 e Lcvg;e: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 f Lcvg;f: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 g Lcvg;g: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 h Lcvg;h:Z
    • owner

      Mappings:
      Namespace Name Mixin selector
      named owner Lnet/minecraft/entity/mob/EvokerFangsEntity;owner:Lnet/minecraft/entity/LazyEntityReference;
      intermediary field_7605 Lnet/minecraft/class_1669;field_7605:Lnet/minecraft/class_10583;
      official i Lcvg;i:Lbzs;
  • 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> Lbzm;<init>(Lbzv;Ldmu;)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> Lcvg;<init>(Ldmu;DDDFILcam;)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 Lbzm;a(Lall$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 Lcvg;a(Lcam;)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 e Lcvg;e()Lcam;
    • readCustomData

      protected void readCustomData(ReadView view)
      Specified by:
      readCustomData in class Entity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Specified by:
      writeCustomData in class Entity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)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 g Lbzm;g()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 Lcvg;c(Lcam;)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 Lbzm;b(B)V
    • getAnimationProgress

      public float getAnimationProgress(float tickProgress)
      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 Lcvg;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 LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) 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 Lbzm;a(Laub;Lbyb;F)Z