Class SkeletonEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

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

    • TOTAL_CONVERSION_TIME

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

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

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

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

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

    • SkeletonEntity

      public SkeletonEntity(EntityType<? extends SkeletonEntity> 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> Lbsr;<init>(Lbsx;Ldcw;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbsr;a(Laka$a;)V
    • isConverting

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

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

      public boolean isShaking()
      Overrides:
      isShaking in class AbstractSkeletonEntity
      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 gm Lcjl;gm()Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official l Lbsr;l()V
    • writeCustomDataToNbt

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

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

      private void setConversionTime(int time)
      Mappings:
      Namespace Name Mixin selector
      named setConversionTime Lnet/minecraft/entity/mob/SkeletonEntity;setConversionTime(I)V
      intermediary method_33589 Lnet/minecraft/class_1613;method_33589(I)V
      official b Lckl;b(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
      named convertToStray Lnet/minecraft/entity/mob/SkeletonEntity;convertToStray()V
      intermediary method_33591 Lnet/minecraft/class_1613;method_33591()V
      official go Lckl;go()V
    • canFreeze

      public boolean canFreeze()
      Returns whether the entity can freeze.
      Overrides:
      canFreeze in class LivingEntity
      Returns:
      whether the entity can freeze
      Implementation Note:
      Entities cannot be frozen if they are in the EntityTypeTags.FREEZE_IMMUNE_ENTITY_TYPES tag. In addition to this,
      invalid reference
      LivingEntity
      cannot be frozen if they are spectator or if they wear an item inside ItemTags.FREEZE_IMMUNE_WEARABLES tag.
      Mappings:
      Namespace Name Mixin selector
      named canFreeze Lnet/minecraft/entity/Entity;canFreeze()Z
      intermediary method_32316 Lnet/minecraft/class_1297;method_32316()Z
      official dC Lbsr;dC()Z
    • getAmbientSound

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

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

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

      SoundEvent getStepSound()
      Specified by:
      getStepSound in class AbstractSkeletonEntity
      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 t Lcjl;t()Lavo;
    • dropEquipment

      protected void dropEquipment(ServerWorld world, DamageSource source, boolean causedByPlayer)
      Overrides:
      dropEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named dropEquipment Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)V
      intermediary method_6099 Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)V
      official a Lbtn;a(Laqu;Lbrk;Z)V