Class AbstractSkeletonEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, 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 cme
  • 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 a Lcme;a: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 b Lcme;b: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 c Lcme;c:Lced;
    • 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 d Lcme;d:Lcdn;
  • 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> Lbvj;<init>(Lbvq;Ldhh;)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 B Lbwh;B()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 m Lcme;m()Lbxm$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 Lbvj;b(Ljh;Ldxu;)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 p Lcme;p()Laxe;
    • 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 d_ Lbwf;d_()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 r Lbvj;r()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 Lbwh;a(Lbam;Lbtg;)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 Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • 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 t Lcme;t()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 x Lcme;x()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 go Lcme;go()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 Lcna;a(Lbwf;F)V
    • createArrowProjectile

      protected PersistentProjectileEntity createArrowProjectile(ItemStack arrow, float damageModifier, @Nullable @Nullable ItemStack shotFrom)
      Mappings:
      Namespace Name Mixin selector
      named createArrowProjectile Lnet/minecraft/entity/mob/AbstractSkeletonEntity;createArrowProjectile(Lnet/minecraft/item/ItemStack;FLnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
      intermediary method_6996 Lnet/minecraft/class_1547;method_6996(Lnet/minecraft/class_1799;FLnet/minecraft/class_1799;)Lnet/minecraft/class_1665;
      official a Lcme;a(Lcxo;FLcxo;)Lcqd;
    • 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 Lbwh;a(Lcyk;)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 Lbvj;a(Lux;)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 Lbwf;a(Lbvr;Lcxo;)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 gp Lcme;gp()Z