Class AbstractSkeletonEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Monster, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
BoggedEntity, SkeletonEntity, StrayEntity, WitherSkeletonEntity

public abstract class AbstractSkeletonEntity extends HostileEntity implements RangedAttackMob
Mappings:
Namespace Name
named net/minecraft/entity/mob/AbstractSkeletonEntity
intermediary net/minecraft/class_1547
official cjn
  • Field Details

    • HARD_ATTACK_INTERVAL

      private static final int HARD_ATTACK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HARD_ATTACK_INTERVAL Lnet/minecraft/entity/mob/AbstractSkeletonEntity;HARD_ATTACK_INTERVAL:I
      intermediary field_49149 Lnet/minecraft/class_1547;field_49149:I
      official b Lcjn;b:I
    • REGULAR_ATTACK_INTERVAL

      private static final int REGULAR_ATTACK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REGULAR_ATTACK_INTERVAL Lnet/minecraft/entity/mob/AbstractSkeletonEntity;REGULAR_ATTACK_INTERVAL:I
      intermediary field_49150 Lnet/minecraft/class_1547;field_49150:I
      official c Lcjn;c:I
    • bowAttackGoal

      private final BowAttackGoal<AbstractSkeletonEntity> bowAttackGoal
      Mappings:
      Namespace Name Mixin selector
      named bowAttackGoal Lnet/minecraft/entity/mob/AbstractSkeletonEntity;bowAttackGoal:Lnet/minecraft/entity/ai/goal/BowAttackGoal;
      intermediary field_7220 Lnet/minecraft/class_1547;field_7220:Lnet/minecraft/class_1380;
      official d Lcjn;d:Lcbp;
    • meleeAttackGoal

      private final MeleeAttackGoal meleeAttackGoal
      Mappings:
      Namespace Name Mixin selector
      named meleeAttackGoal Lnet/minecraft/entity/mob/AbstractSkeletonEntity;meleeAttackGoal:Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;
      intermediary field_7221 Lnet/minecraft/class_1547;field_7221:Lnet/minecraft/class_1366;
      official e Lcjn;e:Lcaz;
  • Constructor Details

    • AbstractSkeletonEntity

      protected AbstractSkeletonEntity(EntityType<? extends AbstractSkeletonEntity> 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> Lbsw;<init>(Lbtc;Ldca;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official z Lbtt;z()V
    • createAbstractSkeletonAttributes

      public static DefaultAttributeContainer.Builder createAbstractSkeletonAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createAbstractSkeletonAttributes Lnet/minecraft/entity/mob/AbstractSkeletonEntity;createAbstractSkeletonAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26905 Lnet/minecraft/class_1547;method_26905()Lnet/minecraft/class_5132$class_5133;
      official s Lcjn;s()Lbuy$a;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lbsw;b(Liz;Ldse;)V
    • getStepSound

      abstract SoundEvent getStepSound()
      Mappings:
      Namespace Name Mixin selector
      named getStepSound Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getStepSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6998 Lnet/minecraft/class_1547;method_6998()Lnet/minecraft/class_3414;
      official u Lcjn;u()Lavz;
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official n_ Lbtr;n_()V
    • tickRiding

      public void tickRiding()
      Overrides:
      tickRiding in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickRiding Lnet/minecraft/entity/Entity;tickRiding()V
      intermediary method_5842 Lnet/minecraft/class_1297;method_5842()V
      official t Lbsw;t()V
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbtt;a(Lazh;Lbqu;)V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbtt;a(Ldcp;Lbqu;Lbtv;Lbuk;)Lbuk;
    • updateAttackType

      public void updateAttackType()
      Mappings:
      Namespace Name Mixin selector
      named updateAttackType Lnet/minecraft/entity/mob/AbstractSkeletonEntity;updateAttackType()V
      intermediary method_6997 Lnet/minecraft/class_1547;method_6997()V
      official y Lcjn;y()V
    • getHardAttackInterval

      protected int getHardAttackInterval()
      Mappings:
      Namespace Name Mixin selector
      named getHardAttackInterval Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getHardAttackInterval()I
      intermediary method_57078 Lnet/minecraft/class_1547;method_57078()I
      official gq Lcjn;gq()I
    • getRegularAttackInterval

      protected int getRegularAttackInterval()
      Mappings:
      Namespace Name Mixin selector
      named getRegularAttackInterval Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getRegularAttackInterval()I
      intermediary method_57079 Lnet/minecraft/class_1547;method_57079()I
      official gr Lcjn;gr()I
    • shootAt

      public void shootAt(LivingEntity target, float pullProgress)
      Specified by:
      shootAt in interface RangedAttackMob
      Mappings:
      Namespace Name Mixin selector
      named shootAt Lnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)V
      intermediary method_7105 Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V
      official a Lckj;a(Lbtr;F)V
    • createArrowProjectile

      protected PersistentProjectileEntity createArrowProjectile(ItemStack arrow, float damageModifier)
      Mappings:
      Namespace Name Mixin selector
      named createArrowProjectile Lnet/minecraft/entity/mob/AbstractSkeletonEntity;createArrowProjectile(Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
      intermediary method_6996 Lnet/minecraft/class_1547;method_6996(Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1665;
      official b Lcjn;b(Lcur;F)Lcnf;
    • canUseRangedWeapon

      public boolean canUseRangedWeapon(RangedWeaponItem weapon)
      Overrides:
      canUseRangedWeapon in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canUseRangedWeapon Lnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
      intermediary method_25938 Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Z
      official a Lbtt;a(Lcvk;)Z
    • readCustomDataFromNbt

      public 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.

      Overrides:
      readCustomDataFromNbt in class MobEntity
      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 Lbsw;a(Lus;)V
    • equipStack

      public void equipStack(EquipmentSlot slot, ItemStack stack)
      Specified by:
      equipStack in interface EquipmentHolder
      Overrides:
      equipStack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named equipStack Lnet/minecraft/entity/LivingEntity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
      intermediary method_5673 Lnet/minecraft/class_1309;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
      official a Lbtr;a(Lbtd;Lcur;)V
    • isShaking

      public boolean isShaking()
      Mappings:
      Namespace Name Mixin selector
      named isShaking Lnet/minecraft/entity/mob/AbstractSkeletonEntity;isShaking()Z
      intermediary method_35191 Lnet/minecraft/class_1547;method_35191()Z
      official gs Lcjn;gs()Z