Class SkeletonEntity

All Implemented Interfaces:
ComponentsAccess, RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint

public class SkeletonEntity extends AbstractSkeletonEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/SkeletonEntity
intermediary net/minecraft/class_1613
official csd
  • 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 b Lcsd;b: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 c Lcsd;c:Lalh;
    • 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 a Lcsd;a:Ljava/lang/String;
    • DEFAULT_STRAY_CONVERSION_TIME

      private static final int DEFAULT_STRAY_CONVERSION_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_STRAY_CONVERSION_TIME Lnet/minecraft/entity/mob/SkeletonEntity;DEFAULT_STRAY_CONVERSION_TIME:I
      intermediary field_57691 Lnet/minecraft/class_1613;field_57691:I
      official d Lcsd;d:I
    • 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 Lcsd;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 f Lcsd;f: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> Lbzm;<init>(Lbzv;Ldmu;)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 Lbzm;a(Lall$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 gJ Lcsd;gJ()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 Lcsd;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 gI Lcrd;gI()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 g Lbzm;g()V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • setConversionTime

      public 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 Lcsd;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 gK Lcsd;gK()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 dN Lbzm;dN()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 p Lcao;p()Layy;
    • 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 e Lcam;e(Lbyb;)Layy;
    • 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 f_ Lcam;f_()Layy;
    • 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 m Lcrd;m()Layy;
    • 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 Lcam;a(Laub;Lbyb;Z)V