Class SpiderEntity

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

public class SpiderEntity extends HostileEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/SpiderEntity
intermediary net/minecraft/class_1628
official ckq
  • 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
      named SPIDER_FLAGS Lnet/minecraft/entity/mob/SpiderEntity;SPIDER_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7403 Lnet/minecraft/class_1628;field_7403:Lnet/minecraft/class_2940;
      official b Lckq;b:Lakk;
    • field_30498

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

    • SpiderEntity

      public SpiderEntity(EntityType<? extends SpiderEntity> 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> Lbsw;<init>(Lbtc;Ldca;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official z Lbtt;z()V
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lbtt;b(Ldca;)Lcdd;
    • 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 Lbsw;a(Lako$a;)V
    • 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 Lbsw;l()V
    • createSpiderAttributes

      public static DefaultAttributeContainer.Builder createSpiderAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createSpiderAttributes Lnet/minecraft/entity/mob/SpiderEntity;createSpiderAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26923 Lnet/minecraft/class_1628;method_26923()Lnet/minecraft/class_5132$class_5133;
      official u Lckq;u()Lbuy$a;
    • 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 Lbtt;v()Lavz;
    • 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 Lbtr;d(Lbrp;)Lavz;
    • 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 o_ Lbtr;o_()Lavz;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lbsw;b(Liz;Ldse;)V
    • isClimbing

      public boolean isClimbing()
      Overrides:
      isClimbing in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isClimbing Lnet/minecraft/entity/LivingEntity;isClimbing()Z
      intermediary method_6101 Lnet/minecraft/class_1309;method_6101()Z
      official q_ Lbtr;q_()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
      API Note:
      This should be called inside AbstractBlock.onEntityCollision(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity). This is used by cobwebs, sweet berries, and powder snow.
      Mappings:
      Namespace Name Mixin selector
      named slowMovement Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_5844 Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
      official a Lbsw;a(Ldse;Levt;)V
    • canHaveStatusEffect

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

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

      public void setClimbingWall(boolean climbing)
      Mappings:
      Namespace Name Mixin selector
      named setClimbingWall Lnet/minecraft/entity/mob/SpiderEntity;setClimbingWall(Z)V
      intermediary method_7166 Lnet/minecraft/class_1628;method_7166(Z)V
      official w Lckq;w(Z)V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      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/entity/EntityData;
      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_1315;
      official a Lbtt;a(Ldcp;Lbqu;Lbtv;Lbuk;)Lbuk;
    • getVehicleAttachmentPos

      public Vec3d getVehicleAttachmentPos(Entity vehicle)
      Overrides:
      getVehicleAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getVehicleAttachmentPos Lnet/minecraft/entity/Entity;getVehicleAttachmentPos(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_55668 Lnet/minecraft/class_1297;method_55668(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
      official l Lbsw;l(Lbsw;)Levt;