Class AbstractSkeletonEntity

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

public abstract class AbstractSkeletonEntity extends HostileEntity implements RangedAttackMob
Mappings:
Namespace Name
official btm
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 Lbtm;b:Lbly;
      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 Lbtm;c:Lbli;
      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> Lbdr;<init>(Lbdv;Lcjw;)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 u Lbei;u()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 m Lbtm;m()Lbfi$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 Lbdr;b(Lgp;Lcyt;)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 p Lbtm;p()Laln;
      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 eE Lbeg;eE()Lbel;
      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_ Lbeg;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 bu Lbdr;bu()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 Lbei;a(Laoh;Lbck;)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 Lbei;a(Lckl;Lbck;Lbek;Lbez;Lqp;)Lbez;
      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 t Lbtm;t()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 Lbuh;a(Lbeg;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 Lbtm;b(Lcdt;F)Lbwv;
      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 Lbei;a(Lcej;)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 Lbdr;a(Lqp;)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 Lbdr;a(Lbdw;Lcdt;)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 Lbeg;b(Lbes;Lbds;)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 bv Lbdr;bv()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 fM Lbtm;fM()Z
      intermediary method_35191 Lnet/minecraft/class_1547;method_35191()Z
      named isShaking Lnet/minecraft/entity/mob/AbstractSkeletonEntity;isShaking()Z