Class AbstractSkeletonEntity

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

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

    • bowAttackGoal

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

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

    • AbstractSkeletonEntity

      protected AbstractSkeletonEntity(EntityType<? extends AbstractSkeletonEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfj;<init>(Lbfn;Lcmm;)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
  • Method Details

    • initGoals

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

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

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

      abstract SoundEvent getStepSound()
      Mappings:
      Namespace Name Mixin selector
      official r Lbvl;r()Lamg;
      intermediary method_6998 Lnet/minecraft/class_1547;method_6998()Lnet/minecraft/class_3414;
      named getStepSound Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getStepSound()Lnet/minecraft/sound/SoundEvent;
    • getGroup

      public EntityGroup getGroup()
      Overrides:
      getGroup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eN Lbfz;eN()Lbge;
      intermediary method_6046 Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;
      named getGroup Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
    • tickMovement

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

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

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

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbgb;a(Lcnb;Lbdv;Lbgd;Lbgt;Lqr;)Lbgt;
      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_2487;)Lnet/minecraft/class_1315;
      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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • updateAttackType

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

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

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

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

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

      Overrides:
      readCustomDataFromNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;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
    • equipStack

      public void equipStack(EquipmentSlot slot, ItemStack stack)
      Equips stack at slot.This is also used to set an entity's mainhand or offhand stack. This overwrites any stacks present in that slot without dropping them.
      Overrides:
      equipStack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;a(Lbfo;Lcfz;)V
      intermediary method_5673 Lnet/minecraft/class_1297;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
      named equipStack Lnet/minecraft/entity/Entity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbfz;b(Lbgl;Lbfk;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • getHeightOffset

      public double getHeightOffset()
      Overrides:
      getHeightOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bw Lbfj;bw()D
      intermediary method_5678 Lnet/minecraft/class_1297;method_5678()D
      named getHeightOffset Lnet/minecraft/entity/Entity;getHeightOffset()D
    • isShaking

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