Class SkeletonEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, Monster, Targeter, CommandOutput, Nameable, EntityLike

public class SkeletonEntity extends AbstractSkeletonEntity
Mappings:
Namespace Name
official bwi
intermediary net/minecraft/class_1613
named net/minecraft/entity/mob/SkeletonEntity
  • Field Details

    • TOTAL_CONVERSION_TIME

      private static final int TOTAL_CONVERSION_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbwi;c:I
      intermediary field_41714 Lnet/minecraft/class_1613;field_41714:I
      named TOTAL_CONVERSION_TIME Lnet/minecraft/entity/mob/SkeletonEntity;TOTAL_CONVERSION_TIME:I
    • CONVERTING

      private static final TrackedData<Boolean> CONVERTING
      Mappings:
      Namespace Name Mixin selector
      official d Lbwi;d:Laby;
      intermediary field_28642 Lnet/minecraft/class_1613;field_28642:Lnet/minecraft/class_2940;
      named CONVERTING Lnet/minecraft/entity/mob/SkeletonEntity;CONVERTING:Lnet/minecraft/entity/data/TrackedData;
    • STRAY_CONVERSION_TIME_KEY

      public static final String STRAY_CONVERSION_TIME_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbwi;b:Ljava/lang/String;
      intermediary field_30495 Lnet/minecraft/class_1613;field_30495:Ljava/lang/String;
      named STRAY_CONVERSION_TIME_KEY Lnet/minecraft/entity/mob/SkeletonEntity;STRAY_CONVERSION_TIME_KEY:Ljava/lang/String;
    • inPowderSnowTime

      private int inPowderSnowTime
      Mappings:
      Namespace Name Mixin selector
      official e Lbwi;e:I
      intermediary field_28643 Lnet/minecraft/class_1613;field_28643:I
      named inPowderSnowTime Lnet/minecraft/entity/mob/SkeletonEntity;inPowderSnowTime:I
    • conversionTime

      private int conversionTime
      Mappings:
      Namespace Name Mixin selector
      official bT Lbwi;bT:I
      intermediary field_28644 Lnet/minecraft/class_1613;field_28644:I
      named conversionTime Lnet/minecraft/entity/mob/SkeletonEntity;conversionTime:I
  • Constructor Details

    • SkeletonEntity

      public SkeletonEntity(EntityType<? extends SkeletonEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Lbfl;Lcmk;)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

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfh;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • isConverting

      public boolean isConverting()
      Returns whether this skeleton is currently converting to a stray.
      Mappings:
      Namespace Name Mixin selector
      official fY Lbwi;fY()Z
      intermediary method_33590 Lnet/minecraft/class_1613;method_33590()Z
      named isConverting Lnet/minecraft/entity/mob/SkeletonEntity;isConverting()Z
    • setConverting

      public void setConverting(boolean converting)
      Mappings:
      Namespace Name Mixin selector
      official x Lbwi;x(Z)V
      intermediary method_35193 Lnet/minecraft/class_1613;method_35193(Z)V
      named setConverting Lnet/minecraft/entity/mob/SkeletonEntity;setConverting(Z)V
    • isShaking

      public boolean isShaking()
      Overrides:
      isShaking in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official fX Lbvj;fX()Z
      intermediary method_35191 Lnet/minecraft/class_1547;method_35191()Z
      named isShaking Lnet/minecraft/entity/mob/AbstractSkeletonEntity;isShaking()Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbfh;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to 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.

      Overrides:
      writeCustomDataToNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b(Lqr;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • 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 AbstractSkeletonEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;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
    • setConversionTime

      private void setConversionTime(int time)
      Mappings:
      Namespace Name Mixin selector
      official b Lbwi;b(I)V
      intermediary method_33589 Lnet/minecraft/class_1613;method_33589(I)V
      named setConversionTime Lnet/minecraft/entity/mob/SkeletonEntity;setConversionTime(I)V
    • convertToStray

      protected void convertToStray()
      Converts this skeleton to a stray and plays a sound if it is not silent.
      Mappings:
      Namespace Name Mixin selector
      official fZ Lbwi;fZ()V
      intermediary method_33591 Lnet/minecraft/class_1613;method_33591()V
      named convertToStray Lnet/minecraft/entity/mob/SkeletonEntity;convertToStray()V
    • canFreeze

      public boolean canFreeze()
      Returns whether the entity can freeze.
      Overrides:
      canFreeze in class LivingEntity
      Returns:
      whether the entity can freeze
      Mappings:
      Namespace Name Mixin selector
      official dw Lbfh;dw()Z
      intermediary method_32316 Lnet/minecraft/class_1297;method_32316()Z
      named canFreeze Lnet/minecraft/entity/Entity;canFreeze()Z
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lbfz;r()Lamg;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbfx;d(Lbem;)Lamg;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      official g_ Lbfx;g_()Lamg;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getStepSound

      SoundEvent getStepSound()
      Specified by:
      getStepSound in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lbvj;q()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;
    • dropEquipment

      protected void dropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops)
      Overrides:
      dropEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfx;a(Lbem;IZ)V
      intermediary method_6099 Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)V
      named dropEquipment Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V