Class SpiderEntity

All Implemented Interfaces:
Attackable, Monster, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
CaveSpiderEntity

public class SpiderEntity extends HostileEntity
Mappings:
Namespace Name
official cda
intermediary net/minecraft/class_1628
named net/minecraft/entity/mob/SpiderEntity
  • Field Details

    • SPIDER_FLAGS

      private static final TrackedData<Byte> SPIDER_FLAGS
      The tracked flags of spiders. Only has the 1 bit for wall climbing.
      Mappings:
      Namespace Name Mixin selector
      official b Lcda;b:Lagm;
      intermediary field_7403 Lnet/minecraft/class_1628;field_7403:Lnet/minecraft/class_2940;
      named SPIDER_FLAGS Lnet/minecraft/entity/mob/SpiderEntity;SPIDER_FLAGS:Lnet/minecraft/entity/data/TrackedData;
    • field_30498

      private static final float field_30498
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcda;c:F
      intermediary field_30498 Lnet/minecraft/class_1628;field_30498:F
      named field_30498 Lnet/minecraft/entity/mob/SpiderEntity;field_30498:F
  • Constructor Details

    • SpiderEntity

      public SpiderEntity(EntityType<? extends SpiderEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblv;<init>(Lblz;Lctp;)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 B Lbmn;B()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • getPassengerAttachmentPos

      protected Vector3f getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
      Overrides:
      getPassengerAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lblv;Lblw;F)Lorg/joml/Vector3f;
      intermediary method_52533 Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lorg/joml/Vector3f;
      named getPassengerAttachmentPos Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lorg/joml/Vector3f;
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbmn;b(Lctp;)Lbvv;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
    • initDataTracker

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

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

      public static DefaultAttributeContainer.Builder createSpiderAttributes()
      Mappings:
      Namespace Name Mixin selector
      official w Lcda;w()Lbnq$a;
      intermediary method_26923 Lnet/minecraft/class_1628;method_26923()Lnet/minecraft/class_5132$class_5133;
      named createSpiderAttributes Lnet/minecraft/entity/mob/SpiderEntity;createSpiderAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official y Lbmn;y()Larr;
      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 Lbml;d(Lbkt;)Larr;
      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 n_ Lbml;n_()Larr;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lblv;b(Lhx;Ldjh;)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
    • isClimbing

      public boolean isClimbing()
      Overrides:
      isClimbing in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official e_ Lbml;e_()Z
      intermediary method_6101 Lnet/minecraft/class_1309;method_6101()Z
      named isClimbing Lnet/minecraft/entity/LivingEntity;isClimbing()Z
    • slowMovement

      public void slowMovement(BlockState state, Vec3d multiplier)
      Calls Entity.onLanding() and slows this entity.

      This means that the entity will avoid taking fall damage.

      Overrides:
      slowMovement in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Ldjh;Lelt;)V
      intermediary method_5844 Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
      named slowMovement Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
    • getGroup

      public EntityGroup getGroup()
      Overrides:
      getGroup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eS Lbml;eS()Lbmq;
      intermediary method_6046 Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;
      named getGroup Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
    • canHaveStatusEffect

      public boolean canHaveStatusEffect(StatusEffectInstance effect)
      Overrides:
      canHaveStatusEffect in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbml;c(Lbli;)Z
      intermediary method_6049 Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Z
      named canHaveStatusEffect Lnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
    • isClimbingWall

      public boolean isClimbingWall()
      Mappings:
      Namespace Name Mixin selector
      official A Lcda;A()Z
      intermediary method_7167 Lnet/minecraft/class_1628;method_7167()Z
      named isClimbingWall Lnet/minecraft/entity/mob/SpiderEntity;isClimbingWall()Z
    • setClimbingWall

      public void setClimbingWall(boolean climbing)
      Mappings:
      Namespace Name Mixin selector
      official w Lcda;w(Z)V
      intermediary method_7166 Lnet/minecraft/class_1628;method_7166(Z)V
      named setClimbingWall Lnet/minecraft/entity/mob/SpiderEntity;setClimbingWall(Z)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 Lbmn;a(Lcue;Lbjz;Lbmp;Lbne;Lsn;)Lbne;
      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;
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbml;b(Lbmx;Lblw;)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
    • getUnscaledRidingOffset

      protected float getUnscaledRidingOffset(Entity vehicle)
      Overrides:
      getUnscaledRidingOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official l Lblv;l(Lblv;)F
      intermediary method_52537 Lnet/minecraft/class_1297;method_52537(Lnet/minecraft/class_1297;)F
      named getUnscaledRidingOffset Lnet/minecraft/entity/Entity;getUnscaledRidingOffset(Lnet/minecraft/entity/Entity;)F