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 bvj
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 Lbvj;b:Lbnt;
      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 Lbvj;c:Lbnd;
      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> Lbfh;<init>(Lbfl;Lcmi;)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 Lbfz;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 Lbvj;q()Lbhd$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 Lbfh;b(Lgt;Ldbq;)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 Lbvj;r()Lamq;
      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 eJ Lbfx;eJ()Lbgc;
      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_ Lbfx;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 bt Lbfh;bt()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 Lbfz;a(Lapo;Lbdw;)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 Lbfz;a(Lcmx;Lbdw;Lbgb;Lbgr;Lre;)Lbgr;
      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 Lbvj;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 Lbwe;a(Lbfx;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 Lbvj;b(Lcfv;F)Lbys;
      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 Lbfz;a(Lcgl;)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 Lbfh;a(Lre;)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 Lbfh;a(Lbfm;Lcfv;)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 Lbfx;b(Lbgj;Lbfi;)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 bu Lbfh;bu()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 fS Lbvj;fS()Z
      intermediary method_35191 Lnet/minecraft/class_1547;method_35191()Z
      named isShaking Lnet/minecraft/entity/mob/AbstractSkeletonEntity;isShaking()Z