Class PathAwareEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Targeter, ScoreHolder, Nameable, EntityLike
Direct Known Subclasses:
AllayEntity, GolemEntity, HostileEntity, PassiveEntity, WaterCreatureEntity

public abstract class PathAwareEntity extends MobEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/PathAwareEntity
intermediary net/minecraft/class_1314
official bwn
  • Field Details

    • DEFAULT_PATHFINDING_FAVOR

      protected static final float DEFAULT_PATHFINDING_FAVOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_PATHFINDING_FAVOR Lnet/minecraft/entity/mob/PathAwareEntity;DEFAULT_PATHFINDING_FAVOR:F
      intermediary field_35670 Lnet/minecraft/class_1314;field_35670:F
      official bY Lbwn;bY:F
  • Constructor Details

    • PathAwareEntity

      protected PathAwareEntity(EntityType<? extends PathAwareEntity> 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> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;)F
      intermediary method_6149 Lnet/minecraft/class_1314;method_6149(Lnet/minecraft/class_2338;)F
      official c Lbwn;c(Ljh;)F
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lbwn;a(Ljh;Ldhk;)F
    • canSpawn

      public boolean canSpawn(WorldAccess world, SpawnReason spawnReason)
      Overrides:
      canSpawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;)Z
      intermediary method_5979 Lnet/minecraft/class_1308;method_5979(Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;)Z
      official a Lbwh;a(Ldhi;Lbvp;)Z
    • isNavigating

      public boolean isNavigating()
      Mappings:
      Namespace Name Mixin selector
      named isNavigating Lnet/minecraft/entity/mob/PathAwareEntity;isNavigating()Z
      intermediary method_6150 Lnet/minecraft/class_1314;method_6150()Z
      official gk Lbwn;gk()Z
    • isPanicking

      public boolean isPanicking()
      Mappings:
      Namespace Name Mixin selector
      named isPanicking Lnet/minecraft/entity/mob/PathAwareEntity;isPanicking()Z
      intermediary method_52546 Lnet/minecraft/class_1314;method_52546()Z
      official gl Lbwn;gl()Z
    • shouldFollowLeash

      protected boolean shouldFollowLeash()
      Mappings:
      Namespace Name Mixin selector
      named shouldFollowLeash Lnet/minecraft/entity/mob/PathAwareEntity;shouldFollowLeash()Z
      intermediary method_43689 Lnet/minecraft/class_1314;method_43689()Z
      official gm Lbwn;gm()Z
    • onShortLeashTick

      public void onShortLeashTick(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named onShortLeashTick Lnet/minecraft/entity/Leashable;onShortLeashTick(Lnet/minecraft/entity/Entity;)V
      intermediary method_60963 Lnet/minecraft/class_9817;method_60963(Lnet/minecraft/class_1297;)V
      official a Lbwd;a(Lbvj;)V
    • beforeLeashTick

      public boolean beforeLeashTick(Entity leashHolder, float distance)
      Called before the default leash-ticking logic. Subclasses can override this to add their own logic to it.

      Returns whether the default logic should run after this..

      See Also:
      • invalid reference
        Leashable#tickLeash
      Mappings:
      Namespace Name Mixin selector
      named beforeLeashTick Lnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Z
      intermediary method_60956 Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Z
      official a Lbwd;a(Lbvj;F)Z
    • getFollowLeashSpeed

      protected double getFollowLeashSpeed()
      Mappings:
      Namespace Name Mixin selector
      named getFollowLeashSpeed Lnet/minecraft/entity/mob/PathAwareEntity;getFollowLeashSpeed()D
      intermediary method_6148 Lnet/minecraft/class_1314;method_6148()D
      official gn Lbwn;gn()D