Class StriderEntity

All Implemented Interfaces:
Attackable, ItemSteerable, Saddleable, Targeter, CommandOutput, Nameable, EntityLike

public class StriderEntity extends AnimalEntity implements ItemSteerable, Saddleable
Mappings:
Namespace Name
official bwn
intermediary net/minecraft/class_4985
named net/minecraft/entity/passive/StriderEntity
  • Field Details

    • SUFFOCATING_MODIFIER_ID

      private static final UUID SUFFOCATING_MODIFIER_ID
      Mappings:
      Namespace Name Mixin selector
      official bS Lbwn;bS:Ljava/util/UUID;
      intermediary field_42981 Lnet/minecraft/class_4985;field_42981:Ljava/util/UUID;
      named SUFFOCATING_MODIFIER_ID Lnet/minecraft/entity/passive/StriderEntity;SUFFOCATING_MODIFIER_ID:Ljava/util/UUID;
    • SUFFOCATING_MODIFIER

      private static final EntityAttributeModifier SUFFOCATING_MODIFIER
      Mappings:
      Namespace Name Mixin selector
      official bT Lbwn;bT:Lbhc;
      intermediary field_42982 Lnet/minecraft/class_4985;field_42982:Lnet/minecraft/class_1322;
      named SUFFOCATING_MODIFIER Lnet/minecraft/entity/passive/StriderEntity;SUFFOCATING_MODIFIER:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
    • COLD_SADDLED_SPEED

      private static final float COLD_SADDLED_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bV Lbwn;bV:F
      intermediary field_30499 Lnet/minecraft/class_4985;field_30499:F
      named COLD_SADDLED_SPEED Lnet/minecraft/entity/passive/StriderEntity;COLD_SADDLED_SPEED:F
    • DEFAULT_SADDLED_SPEED

      private static final float DEFAULT_SADDLED_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bW Lbwn;bW:F
      intermediary field_30501 Lnet/minecraft/class_4985;field_30501:F
      named DEFAULT_SADDLED_SPEED Lnet/minecraft/entity/passive/StriderEntity;DEFAULT_SADDLED_SPEED:F
    • BREEDING_INGREDIENT

      private static final Ingredient BREEDING_INGREDIENT
      Mappings:
      Namespace Name Mixin selector
      official bX Lbwn;bX:Lciu;
      intermediary field_23243 Lnet/minecraft/class_4985;field_23243:Lnet/minecraft/class_1856;
      named BREEDING_INGREDIENT Lnet/minecraft/entity/passive/StriderEntity;BREEDING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
    • ATTRACTING_INGREDIENT

      private static final Ingredient ATTRACTING_INGREDIENT
      Mappings:
      Namespace Name Mixin selector
      official bY Lbwn;bY:Lciu;
      intermediary field_23244 Lnet/minecraft/class_4985;field_23244:Lnet/minecraft/class_1856;
      named ATTRACTING_INGREDIENT Lnet/minecraft/entity/passive/StriderEntity;ATTRACTING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
    • BOOST_TIME

      private static final TrackedData<Integer> BOOST_TIME
      Mappings:
      Namespace Name Mixin selector
      official bZ Lbwn;bZ:Lacl;
      intermediary field_23245 Lnet/minecraft/class_4985;field_23245:Lnet/minecraft/class_2940;
      named BOOST_TIME Lnet/minecraft/entity/passive/StriderEntity;BOOST_TIME:Lnet/minecraft/entity/data/TrackedData;
    • COLD

      private static final TrackedData<Boolean> COLD
      Mappings:
      Namespace Name Mixin selector
      official ca Lbwn;ca:Lacl;
      intermediary field_23246 Lnet/minecraft/class_4985;field_23246:Lnet/minecraft/class_2940;
      named COLD Lnet/minecraft/entity/passive/StriderEntity;COLD:Lnet/minecraft/entity/data/TrackedData;
    • SADDLED

      private static final TrackedData<Boolean> SADDLED
      Mappings:
      Namespace Name Mixin selector
      official cb Lbwn;cb:Lacl;
      intermediary field_23247 Lnet/minecraft/class_4985;field_23247:Lnet/minecraft/class_2940;
      named SADDLED Lnet/minecraft/entity/passive/StriderEntity;SADDLED:Lnet/minecraft/entity/data/TrackedData;
    • saddledComponent

      private final SaddledComponent saddledComponent
      Mappings:
      Namespace Name Mixin selector
      official cc Lbwn;cc:Lbft;
      intermediary field_23240 Lnet/minecraft/class_4985;field_23240:Lnet/minecraft/class_4980;
      named saddledComponent Lnet/minecraft/entity/passive/StriderEntity;saddledComponent:Lnet/minecraft/entity/SaddledComponent;
    • temptGoal

      @Nullable private @Nullable TemptGoal temptGoal
      Mappings:
      Namespace Name Mixin selector
      official cd Lbwn;cd:Lbob;
      intermediary field_23241 Lnet/minecraft/class_4985;field_23241:Lnet/minecraft/class_1391;
      named temptGoal Lnet/minecraft/entity/passive/StriderEntity;temptGoal:Lnet/minecraft/entity/ai/goal/TemptGoal;
    • escapeDangerGoal

      @Nullable private @Nullable EscapeDangerGoal escapeDangerGoal
      Mappings:
      Namespace Name Mixin selector
      official ce Lbwn;ce:Lbnm;
      intermediary field_23242 Lnet/minecraft/class_4985;field_23242:Lnet/minecraft/class_1374;
      named escapeDangerGoal Lnet/minecraft/entity/passive/StriderEntity;escapeDangerGoal:Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;
  • Constructor Details

    • StriderEntity

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

    • canSpawn

      public static boolean canSpawn(EntityType<StriderEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lbwn;c(Lbfl;Lcmj;Lbgb;Lgt;Lapo;)Z
      intermediary method_26344 Lnet/minecraft/class_4985;method_26344(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      named canSpawn Lnet/minecraft/entity/passive/StriderEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(Lacl;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      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
    • 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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b(Lre;)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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(Lre;)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
    • isSaddled

      public boolean isSaddled()
      Specified by:
      isSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official i Lbgo;i()Z
      intermediary method_6725 Lnet/minecraft/class_5146;method_6725()Z
      named isSaddled Lnet/minecraft/entity/Saddleable;isSaddled()Z
    • canBeSaddled

      public boolean canBeSaddled()
      Specified by:
      canBeSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official g Lbgo;g()Z
      intermediary method_6765 Lnet/minecraft/class_5146;method_6765()Z
      named canBeSaddled Lnet/minecraft/entity/Saddleable;canBeSaddled()Z
    • saddle

      public void saddle(@Nullable @Nullable SoundCategory sound)
      Specified by:
      saddle in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official a Lbgo;a(Lams;)V
      intermediary method_6576 Lnet/minecraft/class_5146;method_6576(Lnet/minecraft/class_3419;)V
      named saddle Lnet/minecraft/entity/Saddleable;saddle(Lnet/minecraft/sound/SoundCategory;)V
    • initGoals

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

      public void setCold(boolean cold)
      Mappings:
      Namespace Name Mixin selector
      official w Lbwn;w(Z)V
      intermediary method_26349 Lnet/minecraft/class_4985;method_26349(Z)V
      named setCold Lnet/minecraft/entity/passive/StriderEntity;setCold(Z)V
    • isCold

      public boolean isCold()
      Mappings:
      Namespace Name Mixin selector
      official q Lbwn;q()Z
      intermediary method_26348 Lnet/minecraft/class_4985;method_26348()Z
      named isCold Lnet/minecraft/entity/passive/StriderEntity;isCold()Z
    • canWalkOnFluid

      public boolean canWalkOnFluid(FluidState state)
      Overrides:
      canWalkOnFluid in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfx;a(Ldwj;)Z
      intermediary method_26319 Lnet/minecraft/class_1309;method_26319(Lnet/minecraft/class_3610;)Z
      named canWalkOnFluid Lnet/minecraft/entity/LivingEntity;canWalkOnFluid(Lnet/minecraft/fluid/FluidState;)Z
    • getMountedHeightOffset

      public double getMountedHeightOffset()
      Overrides:
      getMountedHeightOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bv Lbfh;bv()D
      intermediary method_5621 Lnet/minecraft/class_1297;method_5621()D
      named getMountedHeightOffset Lnet/minecraft/entity/Entity;getMountedHeightOffset()D
    • canSpawn

      public boolean canSpawn(WorldView world)
      Overrides:
      canSpawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfz;a(Lcml;)Z
      intermediary method_5957 Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
    • getControllingPassenger

      @Nullable public @Nullable LivingEntity getControllingPassenger()
      Returns the passenger in control of this entity, or null if there is none.

      Rideable entities should override this to return the entity. This is usually #getFirstPassenger.

      Overrides:
      getControllingPassenger in class MobEntity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cK Lbfh;cK()Lbfx;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
      named getControllingPassenger Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
    • updatePassengerForDismount

      public Vec3d updatePassengerForDismount(LivingEntity passenger)
      Returns the position of the dismounted passenger.

      Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.

      Overrides:
      updatePassengerForDismount in class Entity
      Returns:
      the position of the dismounted passenger
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b(Lbfx;)Lede;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
    • tickControlled

      protected void tickControlled(LivingEntity controllingPassenger, Vec3d movementInput)
      Overrides:
      tickControlled in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfx;a(Lbfx;Lede;)V
      intermediary method_49481 Lnet/minecraft/class_1309;method_49481(Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)V
      named tickControlled Lnet/minecraft/entity/LivingEntity;tickControlled(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)V
    • getControlledMovementInput

      protected Vec3d getControlledMovementInput(LivingEntity controllingPassenger, Vec3d movementInput)
      Overrides:
      getControlledMovementInput in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbfx;b(Lbfx;Lede;)Lede;
      intermediary method_49482 Lnet/minecraft/class_1309;method_49482(Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      named getControlledMovementInput Lnet/minecraft/entity/LivingEntity;getControlledMovementInput(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • getSaddledSpeed

      protected float getSaddledSpeed(LivingEntity controllingPassenger)
      Overrides:
      getSaddledSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official g Lbfx;g(Lbfx;)F
      intermediary method_49485 Lnet/minecraft/class_1309;method_49485(Lnet/minecraft/class_1309;)F
      named getSaddledSpeed Lnet/minecraft/entity/LivingEntity;getSaddledSpeed(Lnet/minecraft/entity/LivingEntity;)F
    • calculateNextStepSoundDistance

      protected float calculateNextStepSoundDistance()
      Overrides:
      calculateNextStepSoundDistance in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aH Lbfh;aH()F
      intermediary method_5867 Lnet/minecraft/class_1297;method_5867()F
      named calculateNextStepSoundDistance Lnet/minecraft/entity/Entity;calculateNextStepSoundDistance()F
    • playStepSound

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

      public boolean consumeOnAStickItem()
      Specified by:
      consumeOnAStickItem in interface ItemSteerable
      Mappings:
      Namespace Name Mixin selector
      official a Lbfu;a()Z
      intermediary method_6577 Lnet/minecraft/class_4981;method_6577()Z
      named consumeOnAStickItem Lnet/minecraft/entity/ItemSteerable;consumeOnAStickItem()Z
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
      Called when the entity falls. Flying mobs should override this to do nothing.
      Overrides:
      fall in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(DZLdbq;Lgt;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • 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
    • isEscapingDanger

      private boolean isEscapingDanger()
      Mappings:
      Namespace Name Mixin selector
      official w Lbwn;w()Z
      intermediary method_30078 Lnet/minecraft/class_4985;method_30078()Z
      named isEscapingDanger Lnet/minecraft/entity/passive/StriderEntity;isEscapingDanger()Z
    • isBeingTempted

      private boolean isBeingTempted()
      Mappings:
      Namespace Name Mixin selector
      official fS Lbwn;fS()Z
      intermediary method_30079 Lnet/minecraft/class_4985;method_30079()Z
      named isBeingTempted Lnet/minecraft/entity/passive/StriderEntity;isBeingTempted()Z
    • movesIndependently

      protected boolean movesIndependently()
      When true, causes this entity to take over pathfinding for its controlling passenger.
      Overrides:
      movesIndependently in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official z Lbfz;z()Z
      intermediary method_26323 Lnet/minecraft/class_1308;method_26323()Z
      named movesIndependently Lnet/minecraft/entity/mob/MobEntity;movesIndependently()Z
    • updateFloating

      private void updateFloating()
      Mappings:
      Namespace Name Mixin selector
      official fY Lbwn;fY()V
      intermediary method_26347 Lnet/minecraft/class_4985;method_26347()V
      named updateFloating Lnet/minecraft/entity/passive/StriderEntity;updateFloating()V
    • createStriderAttributes

      public static DefaultAttributeContainer.Builder createStriderAttributes()
      Mappings:
      Namespace Name Mixin selector
      official r Lbwn;r()Lbhd$a;
      intermediary method_26924 Lnet/minecraft/class_4985;method_26924()Lnet/minecraft/class_5132$class_5133;
      named createStriderAttributes Lnet/minecraft/entity/passive/StriderEntity;createStriderAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lbfz;s()Lamq;
      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 LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbfx;d(Lbem;)Lamq;
      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 LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official x_ Lbfx;x_()Lamq;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of Entity.canStartRiding(net.minecraft.entity.Entity).

      Overrides:
      canAddPassenger in class Entity
      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbfh;o(Lbfh;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
    • hurtByWater

      public boolean hurtByWater()
      Overrides:
      hurtByWater in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eX Lbfx;eX()Z
      intermediary method_29503 Lnet/minecraft/class_1309;method_29503()Z
      named hurtByWater Lnet/minecraft/entity/LivingEntity;hurtByWater()Z
    • isOnFire

      public boolean isOnFire()
      Returns whether the entity is on fire and is not fire immune.
      Overrides:
      isOnFire in class Entity
      Returns:
      whether the entity is on fire and is not fire immune
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bK Lbfh;bK()Z
      intermediary method_5809 Lnet/minecraft/class_1297;method_5809()Z
      named isOnFire Lnet/minecraft/entity/Entity;isOnFire()Z
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfz;a(Lcmi;)Lbph;
      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;
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbgg;a(Lgt;Lcml;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
    • createChild

      @Nullable public @Nullable StriderEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbwn;b(Laip;Lbfc;)Lbwn;
      intermediary method_26343 Lnet/minecraft/class_4985;method_26343(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_4985;
      named createChild Lnet/minecraft/entity/passive/StriderEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/StriderEntity;
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Overrides:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official m Lbrj;m(Lcfv;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
    • dropInventory

      protected void dropInventory()
      Overrides:
      dropInventory in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official er Lbfx;er()V
      intermediary method_16078 Lnet/minecraft/class_1309;method_16078()V
      named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory()V
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbfz;b(Lbym;Lbdx;)Lbdy;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cF Lbfh;cF()Lede;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfz;a(Lcmx;Lbdw;Lbgb;Lbgr;Lre;)Lbgr;
      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;
    • initializeRider

      private EntityData initializeRider(ServerWorldAccess world, LocalDifficulty difficulty, MobEntity rider, @Nullable @Nullable EntityData entityData)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwn;a(Lcmx;Lbdw;Lbfz;Lbgr;)Lbgr;
      intermediary method_30336 Lnet/minecraft/class_4985;method_30336(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_1308;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      named initializeRider Lnet/minecraft/entity/passive/StriderEntity;initializeRider(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;