Class MobEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
AmbientEntity, EnderDragonEntity, FlyingEntity, PathAwareEntity, SlimeEntity

public abstract class MobEntity extends LivingEntity implements EquipmentHolder, Targeter
Mappings:
Namespace Name
named net/minecraft/entity/mob/MobEntity
intermediary net/minecraft/class_1308
official btn
  • Field Details

    • MOB_FLAGS

      private static final TrackedData<Byte> MOB_FLAGS
      Mappings:
      Namespace Name Mixin selector
      named MOB_FLAGS Lnet/minecraft/entity/mob/MobEntity;MOB_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_6193 Lnet/minecraft/class_1308;field_6193:Lnet/minecraft/class_2940;
      official b Lbtn;b:Lajv;
    • AI_DISABLED_FLAG

      private static final int AI_DISABLED_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named AI_DISABLED_FLAG Lnet/minecraft/entity/mob/MobEntity;AI_DISABLED_FLAG:I
      intermediary field_30088 Lnet/minecraft/class_1308;field_30088:I
      official c Lbtn;c:I
    • LEFT_HANDED_FLAG

      private static final int LEFT_HANDED_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LEFT_HANDED_FLAG Lnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_FLAG:I
      intermediary field_30089 Lnet/minecraft/class_1308;field_30089:I
      official d Lbtn;d:I
    • ATTACKING_FLAG

      private static final int ATTACKING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ATTACKING_FLAG Lnet/minecraft/entity/mob/MobEntity;ATTACKING_FLAG:I
      intermediary field_30090 Lnet/minecraft/class_1308;field_30090:I
      official e Lbtn;e:I
    • MINIMUM_DROPPED_XP_PER_EQUIPMENT

      protected static final int MINIMUM_DROPPED_XP_PER_EQUIPMENT
      The minimum additional experience a mob will drop per item of equipment they have.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MINIMUM_DROPPED_XP_PER_EQUIPMENT Lnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_XP_PER_EQUIPMENT:I
      intermediary field_30087 Lnet/minecraft/class_1308;field_30087:I
      official f Lbtn;f:I
    • ITEM_PICK_UP_RANGE_EXPANDER

      private static final Vec3i ITEM_PICK_UP_RANGE_EXPANDER
      Mappings:
      Namespace Name Mixin selector
      named ITEM_PICK_UP_RANGE_EXPANDER Lnet/minecraft/entity/mob/MobEntity;ITEM_PICK_UP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
      intermediary field_38386 Lnet/minecraft/class_1308;field_38386:Lnet/minecraft/class_2382;
      official bZ Lbtn;bZ:Lkh;
    • BASE_SPAWN_EQUIPMENT_CHANCE

      public static final float BASE_SPAWN_EQUIPMENT_CHANCE
      The base chance (before applying local difficulty) that this mob will spawn with equipment.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_SPAWN_EQUIPMENT_CHANCE Lnet/minecraft/entity/mob/MobEntity;BASE_SPAWN_EQUIPMENT_CHANCE:F
      intermediary field_30091 Lnet/minecraft/class_1308;field_30091:F
      official g Lbtn;g:F
    • DEFAULT_CAN_PICKUP_LOOT_CHANCE

      public static final float DEFAULT_CAN_PICKUP_LOOT_CHANCE
      Used by Zombies to control the chance that they spawn with the ability to pick up loot.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_CAN_PICKUP_LOOT_CHANCE Lnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICKUP_LOOT_CHANCE:F
      intermediary field_30083 Lnet/minecraft/class_1308;field_30083:F
      official h Lbtn;h:F
    • BASE_ENCHANTED_ARMOR_CHANCE

      public static final float BASE_ENCHANTED_ARMOR_CHANCE
      The base chance (before applying difficulty) that a mob's equipped armor can become enchanted.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_ENCHANTED_ARMOR_CHANCE Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_ARMOR_CHANCE:F
      intermediary field_30084 Lnet/minecraft/class_1308;field_30084:F
      official bH Lbtn;bH:F
    • BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE

      public static final float BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE
      The base chance (before applying difficulty) that a mob's equipped item can become enchanted.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE:F
      intermediary field_30085 Lnet/minecraft/class_1308;field_30085:F
      official bI Lbtn;bI:F
    • LEASH_KEY

      public static final String LEASH_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LEASH_KEY Lnet/minecraft/entity/mob/MobEntity;LEASH_KEY:Ljava/lang/String;
      intermediary field_30086 Lnet/minecraft/class_1308;field_30086:Ljava/lang/String;
      official bJ Lbtn;bJ:Ljava/lang/String;
    • DEFAULT_DROP_CHANCE

      public static final float DEFAULT_DROP_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_DROP_CHANCE Lnet/minecraft/entity/mob/MobEntity;DEFAULT_DROP_CHANCE:F
      intermediary field_34043 Lnet/minecraft/class_1308;field_34043:F
      official bK Lbtn;bK:F
    • field_38932

      public static final int field_38932
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38932 Lnet/minecraft/entity/mob/MobEntity;field_38932:I
      intermediary field_38932 Lnet/minecraft/class_1308;field_38932:I
      official bL Lbtn;bL:I
    • field_35039

      public static final int field_35039
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_35039 Lnet/minecraft/entity/mob/MobEntity;field_35039:I
      intermediary field_35039 Lnet/minecraft/class_1308;field_35039:I
      official bM Lbtn;bM:I
    • ATTACK_RANGE

      private static final double ATTACK_RANGE
      Mappings:
      Namespace Name Mixin selector
      named ATTACK_RANGE Lnet/minecraft/entity/mob/MobEntity;ATTACK_RANGE:D
      intermediary field_45969 Lnet/minecraft/class_1308;field_45969:D
      official ca Lbtn;ca:D
    • field_51997

      protected static final Identifier field_51997
      Mappings:
      Namespace Name Mixin selector
      named field_51997 Lnet/minecraft/entity/mob/MobEntity;field_51997:Lnet/minecraft/util/Identifier;
      intermediary field_51997 Lnet/minecraft/class_1308;field_51997:Lnet/minecraft/class_2960;
      official bN Lbtn;bN:Lakq;
    • ambientSoundChance

      public int ambientSoundChance
      Mappings:
      Namespace Name Mixin selector
      named ambientSoundChance Lnet/minecraft/entity/mob/MobEntity;ambientSoundChance:I
      intermediary field_6191 Lnet/minecraft/class_1308;field_6191:I
      official bO Lbtn;bO:I
    • experiencePoints

      protected int experiencePoints
      Mappings:
      Namespace Name Mixin selector
      named experiencePoints Lnet/minecraft/entity/mob/MobEntity;experiencePoints:I
      intermediary field_6194 Lnet/minecraft/class_1308;field_6194:I
      official bP Lbtn;bP:I
    • lookControl

      protected LookControl lookControl
      Mappings:
      Namespace Name Mixin selector
      named lookControl Lnet/minecraft/entity/mob/MobEntity;lookControl:Lnet/minecraft/entity/ai/control/LookControl;
      intermediary field_6206 Lnet/minecraft/class_1308;field_6206:Lnet/minecraft/class_1333;
      official bQ Lbtn;bQ:Lbzm;
    • moveControl

      protected MoveControl moveControl
      Mappings:
      Namespace Name Mixin selector
      named moveControl Lnet/minecraft/entity/mob/MobEntity;moveControl:Lnet/minecraft/entity/ai/control/MoveControl;
      intermediary field_6207 Lnet/minecraft/class_1308;field_6207:Lnet/minecraft/class_1335;
      official bR Lbtn;bR:Lbzn;
    • jumpControl

      protected JumpControl jumpControl
      Mappings:
      Namespace Name Mixin selector
      named jumpControl Lnet/minecraft/entity/mob/MobEntity;jumpControl:Lnet/minecraft/entity/ai/control/JumpControl;
      intermediary field_6204 Lnet/minecraft/class_1308;field_6204:Lnet/minecraft/class_1334;
      official bS Lbtn;bS:Lbzl;
    • bodyControl

      private final BodyControl bodyControl
      Mappings:
      Namespace Name Mixin selector
      named bodyControl Lnet/minecraft/entity/mob/MobEntity;bodyControl:Lnet/minecraft/entity/ai/control/BodyControl;
      intermediary field_6188 Lnet/minecraft/class_1308;field_6188:Lnet/minecraft/class_1330;
      official cb Lbtn;cb:Lbzi;
    • goalSelector

      protected final GoalSelector goalSelector
      Contains actions the entity can perform. These may consume, for example, the target entity as determined during the targetSelector's execution.
      Mappings:
      Namespace Name Mixin selector
      named goalSelector Lnet/minecraft/entity/mob/MobEntity;goalSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
      intermediary field_6201 Lnet/minecraft/class_1308;field_6201:Lnet/minecraft/class_1355;
      official bU Lbtn;bU:Lcal;
    • targetSelector

      protected final GoalSelector targetSelector
      Contains goals used to select this entity's target. Actions in this queue are executed first so the selected target is available to the rest of the AI's goals.
      Mappings:
      Namespace Name Mixin selector
      named targetSelector Lnet/minecraft/entity/mob/MobEntity;targetSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
      intermediary field_6185 Lnet/minecraft/class_1308;field_6185:Lnet/minecraft/class_1355;
      official bV Lbtn;bV:Lcal;
    • target

      Mappings:
      Namespace Name Mixin selector
      named target Lnet/minecraft/entity/mob/MobEntity;target:Lnet/minecraft/entity/LivingEntity;
      intermediary field_6199 Lnet/minecraft/class_1308;field_6199:Lnet/minecraft/class_1309;
      official cc Lbtn;cc:Lbtl;
    • visibilityCache

      private final MobVisibilityCache visibilityCache
      Mappings:
      Namespace Name Mixin selector
      named visibilityCache Lnet/minecraft/entity/mob/MobEntity;visibilityCache:Lnet/minecraft/entity/mob/MobVisibilityCache;
      intermediary field_6190 Lnet/minecraft/class_1308;field_6190:Lnet/minecraft/class_1413;
      official cd Lbtn;cd:Lcdv;
    • handItems

      private final DefaultedList<ItemStack> handItems
      Mappings:
      Namespace Name Mixin selector
      named handItems Lnet/minecraft/entity/mob/MobEntity;handItems:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_6195 Lnet/minecraft/class_1308;field_6195:Lnet/minecraft/class_2371;
      official ce Lbtn;ce:Ljv;
    • handDropChances

      protected final float[] handDropChances
      Mappings:
      Namespace Name Mixin selector
      named handDropChances Lnet/minecraft/entity/mob/MobEntity;handDropChances:[F
      intermediary field_6187 Lnet/minecraft/class_1308;field_6187:[F
      official bW Lbtn;bW:[F
    • armorItems

      private final DefaultedList<ItemStack> armorItems
      Mappings:
      Namespace Name Mixin selector
      named armorItems Lnet/minecraft/entity/mob/MobEntity;armorItems:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_6205 Lnet/minecraft/class_1308;field_6205:Lnet/minecraft/class_2371;
      official cf Lbtn;cf:Ljv;
    • armorDropChances

      protected final float[] armorDropChances
      Mappings:
      Namespace Name Mixin selector
      named armorDropChances Lnet/minecraft/entity/mob/MobEntity;armorDropChances:[F
      intermediary field_6186 Lnet/minecraft/class_1308;field_6186:[F
      official bX Lbtn;bX:[F
    • bodyArmor

      private ItemStack bodyArmor
      Mappings:
      Namespace Name Mixin selector
      named bodyArmor Lnet/minecraft/entity/mob/MobEntity;bodyArmor:Lnet/minecraft/item/ItemStack;
      intermediary field_48829 Lnet/minecraft/class_1308;field_48829:Lnet/minecraft/class_1799;
      official cg Lbtn;cg:Lcuo;
    • bodyArmorDropChance

      protected float bodyArmorDropChance
      Mappings:
      Namespace Name Mixin selector
      named bodyArmorDropChance Lnet/minecraft/entity/mob/MobEntity;bodyArmorDropChance:F
      intermediary field_48828 Lnet/minecraft/class_1308;field_48828:F
      official bY Lbtn;bY:F
    • canPickUpLoot

      private boolean canPickUpLoot
      Mappings:
      Namespace Name Mixin selector
      named canPickUpLoot Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot:Z
      intermediary field_6203 Lnet/minecraft/class_1308;field_6203:Z
      official ch Lbtn;ch:Z
    • persistent

      private boolean persistent
      Mappings:
      Namespace Name Mixin selector
      named persistent Lnet/minecraft/entity/mob/MobEntity;persistent:Z
      intermediary field_6200 Lnet/minecraft/class_1308;field_6200:Z
      official ci Lbtn;ci:Z
    • pathfindingPenalties

      private final Map<PathNodeType,Float> pathfindingPenalties
      Mappings:
      Namespace Name Mixin selector
      named pathfindingPenalties Lnet/minecraft/entity/mob/MobEntity;pathfindingPenalties:Ljava/util/Map;
      intermediary field_6196 Lnet/minecraft/class_1308;field_6196:Ljava/util/Map;
      official cj Lbtn;cj:Ljava/util/Map;
    • lootTable

      Mappings:
      Namespace Name Mixin selector
      named lootTable Lnet/minecraft/entity/mob/MobEntity;lootTable:Lnet/minecraft/registry/RegistryKey;
      intermediary field_6198 Lnet/minecraft/class_1308;field_6198:Lnet/minecraft/class_5321;
      official ck Lbtn;ck:Lakp;
    • lootTableSeed

      private long lootTableSeed
      Mappings:
      Namespace Name Mixin selector
      named lootTableSeed Lnet/minecraft/entity/mob/MobEntity;lootTableSeed:J
      intermediary field_6184 Lnet/minecraft/class_1308;field_6184:J
      official cl Lbtn;cl:J
    • holdingEntity

      @Nullable private @Nullable Entity holdingEntity
      Mappings:
      Namespace Name Mixin selector
      named holdingEntity Lnet/minecraft/entity/mob/MobEntity;holdingEntity:Lnet/minecraft/entity/Entity;
      intermediary field_6202 Lnet/minecraft/class_1308;field_6202:Lnet/minecraft/class_1297;
      official cm Lbtn;cm:Lbsq;
    • holdingEntityId

      private int holdingEntityId
      Mappings:
      Namespace Name Mixin selector
      named holdingEntityId Lnet/minecraft/entity/mob/MobEntity;holdingEntityId:I
      intermediary field_18279 Lnet/minecraft/class_1308;field_18279:I
      official cn Lbtn;cn:I
    • leashNbt

      @Nullable private @Nullable com.mojang.datafixers.util.Either<UUID,BlockPos> leashNbt
      Mappings:
      Namespace Name Mixin selector
      named leashNbt Lnet/minecraft/entity/mob/MobEntity;leashNbt:Lcom/mojang/datafixers/util/Either;
      intermediary field_6192 Lnet/minecraft/class_1308;field_6192:Lcom/mojang/datafixers/util/Either;
      official co Lbtn;co:Lcom/mojang/datafixers/util/Either;
    • positionTarget

      private BlockPos positionTarget
      Mappings:
      Namespace Name Mixin selector
      named positionTarget Lnet/minecraft/entity/mob/MobEntity;positionTarget:Lnet/minecraft/util/math/BlockPos;
      intermediary field_18074 Lnet/minecraft/class_1308;field_18074:Lnet/minecraft/class_2338;
      official cp Lbtn;cp:Ljd;
    • positionTargetRange

      private float positionTargetRange
      Mappings:
      Namespace Name Mixin selector
      named positionTargetRange Lnet/minecraft/entity/mob/MobEntity;positionTargetRange:F
      intermediary field_18075 Lnet/minecraft/class_1308;field_18075:F
      official cq Lbtn;cq:F
  • Constructor Details

    • MobEntity

      protected MobEntity(EntityType<? extends MobEntity> 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> Lbsq;<init>(Lbsw;Ldcu;)V
  • Method Details

    • initGoals

      protected void initGoals()
      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 Lbtn;z()V
    • createMobAttributes

      public static DefaultAttributeContainer.Builder createMobAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createMobAttributes Lnet/minecraft/entity/mob/MobEntity;createMobAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26828 Lnet/minecraft/class_1308;method_26828()Lnet/minecraft/class_5132$class_5133;
      official A Lbtn;A()Lbut$a;
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      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 Lbtn;b(Ldcu;)Lccy;
    • movesIndependently

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

      public float getPathfindingPenalty(PathNodeType nodeType)
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingPenalty Lnet/minecraft/entity/mob/MobEntity;getPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;)F
      intermediary method_5944 Lnet/minecraft/class_1308;method_5944(Lnet/minecraft/class_7;)F
      official a Lbtn;a(Lepp;)F
    • setPathfindingPenalty

      public void setPathfindingPenalty(PathNodeType nodeType, float penalty)
      Mappings:
      Namespace Name Mixin selector
      named setPathfindingPenalty Lnet/minecraft/entity/mob/MobEntity;setPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;F)V
      intermediary method_5941 Lnet/minecraft/class_1308;method_5941(Lnet/minecraft/class_7;F)V
      official a Lbtn;a(Lepp;F)V
    • onStartPathfinding

      public void onStartPathfinding()
      Mappings:
      Namespace Name Mixin selector
      named onStartPathfinding Lnet/minecraft/entity/mob/MobEntity;onStartPathfinding()V
      intermediary method_51504 Lnet/minecraft/class_1308;method_51504()V
      official C Lbtn;C()V
    • onFinishPathfinding

      public void onFinishPathfinding()
      Mappings:
      Namespace Name Mixin selector
      named onFinishPathfinding Lnet/minecraft/entity/mob/MobEntity;onFinishPathfinding()V
      intermediary method_51503 Lnet/minecraft/class_1308;method_51503()V
      official D Lbtn;D()V
    • createBodyControl

      protected BodyControl createBodyControl()
      Mappings:
      Namespace Name Mixin selector
      named createBodyControl Lnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
      intermediary method_5963 Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;
      official E Lbtn;E()Lbzi;
    • getLookControl

      public LookControl getLookControl()
      Mappings:
      Namespace Name Mixin selector
      named getLookControl Lnet/minecraft/entity/mob/MobEntity;getLookControl()Lnet/minecraft/entity/ai/control/LookControl;
      intermediary method_5988 Lnet/minecraft/class_1308;method_5988()Lnet/minecraft/class_1333;
      official F Lbtn;F()Lbzm;
    • getMoveControl

      public MoveControl getMoveControl()
      Mappings:
      Namespace Name Mixin selector
      named getMoveControl Lnet/minecraft/entity/mob/MobEntity;getMoveControl()Lnet/minecraft/entity/ai/control/MoveControl;
      intermediary method_5962 Lnet/minecraft/class_1308;method_5962()Lnet/minecraft/class_1335;
      official H Lbtn;H()Lbzn;
    • getJumpControl

      public JumpControl getJumpControl()
      Mappings:
      Namespace Name Mixin selector
      named getJumpControl Lnet/minecraft/entity/mob/MobEntity;getJumpControl()Lnet/minecraft/entity/ai/control/JumpControl;
      intermediary method_5993 Lnet/minecraft/class_1308;method_5993()Lnet/minecraft/class_1334;
      official I Lbtn;I()Lbzl;
    • getNavigation

      public EntityNavigation getNavigation()
      Mappings:
      Namespace Name Mixin selector
      named getNavigation Lnet/minecraft/entity/mob/MobEntity;getNavigation()Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5942 Lnet/minecraft/class_1308;method_5942()Lnet/minecraft/class_1408;
      official J Lbtn;J()Lccy;
    • 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 Entity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getControllingPassenger Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
      official cR Lbsq;cR()Lbtl;
    • getVisibilityCache

      public MobVisibilityCache getVisibilityCache()
      Mappings:
      Namespace Name Mixin selector
      named getVisibilityCache Lnet/minecraft/entity/mob/MobEntity;getVisibilityCache()Lnet/minecraft/entity/mob/MobVisibilityCache;
      intermediary method_5985 Lnet/minecraft/class_1308;method_5985()Lnet/minecraft/class_1413;
      official L Lbtn;L()Lcdv;
    • getTarget

      @Nullable public @Nullable LivingEntity getTarget()
      Specified by:
      getTarget in interface Targeter
      Mappings:
      Namespace Name Mixin selector
      named getTarget Lnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;
      intermediary method_5968 Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
      official p Lbuk;p()Lbtl;
    • getTargetInBrain

      @Nullable protected final @Nullable LivingEntity getTargetInBrain()
      Mappings:
      Namespace Name Mixin selector
      named getTargetInBrain Lnet/minecraft/entity/mob/MobEntity;getTargetInBrain()Lnet/minecraft/entity/LivingEntity;
      intermediary method_59664 Lnet/minecraft/class_1308;method_59664()Lnet/minecraft/class_1309;
      official N Lbtn;N()Lbtl;
    • setTarget

      public void setTarget(@Nullable @Nullable LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named setTarget Lnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_5980 Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)V
      official h Lbtn;h(Lbtl;)V
    • canTarget

      public boolean canTarget(EntityType<?> type)
      Overrides:
      canTarget in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canTarget Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Z
      intermediary method_5973 Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Z
      official a Lbtl;a(Lbsw;)Z
    • canUseRangedWeapon

      public boolean canUseRangedWeapon(RangedWeaponItem weapon)
      Mappings:
      Namespace Name Mixin selector
      named canUseRangedWeapon Lnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
      intermediary method_25938 Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Z
      official a Lbtn;a(Lcvl;)Z
    • onEatingGrass

      public void onEatingGrass()
      Mappings:
      Namespace Name Mixin selector
      named onEatingGrass Lnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
      intermediary method_5983 Lnet/minecraft/class_1308;method_5983()V
      official O Lbtn;O()V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class LivingEntity
      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 Lbsq;a(Lajz$a;)V
    • getMinAmbientSoundDelay

      public int getMinAmbientSoundDelay()
      Mappings:
      Namespace Name Mixin selector
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      official P Lbtn;P()I
    • playAmbientSound

      public void playAmbientSound()
      Mappings:
      Namespace Name Mixin selector
      named playAmbientSound Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
      intermediary method_5966 Lnet/minecraft/class_1308;method_5966()V
      official Q Lbtn;Q()V
    • baseTick

      public void baseTick()
      Overrides:
      baseTick in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named baseTick Lnet/minecraft/entity/Entity;baseTick()V
      intermediary method_5670 Lnet/minecraft/class_1297;method_5670()V
      official aw Lbsq;aw()V
    • playHurtSound

      protected void playHurtSound(DamageSource damageSource)
      Overrides:
      playHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named playHurtSound Lnet/minecraft/entity/LivingEntity;playHurtSound(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_6013 Lnet/minecraft/class_1309;method_6013(Lnet/minecraft/class_1282;)V
      official e Lbtl;e(Lbrj;)V
    • resetSoundDelay

      private void resetSoundDelay()
      Mappings:
      Namespace Name Mixin selector
      named resetSoundDelay Lnet/minecraft/entity/mob/MobEntity;resetSoundDelay()V
      intermediary method_5975 Lnet/minecraft/class_1308;method_5975()V
      official s Lbtn;s()V
    • getXpToDrop

      protected int getXpToDrop()
      Called when this entity is killed and returns the amount of experience to drop.
      Overrides:
      getXpToDrop in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getXpToDrop Lnet/minecraft/entity/LivingEntity;getXpToDrop()I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110()I
      official eh Lbtl;eh()I
    • playSpawnEffects

      public void playSpawnEffects()
      Mappings:
      Namespace Name Mixin selector
      named playSpawnEffects Lnet/minecraft/entity/mob/MobEntity;playSpawnEffects()V
      intermediary method_5990 Lnet/minecraft/class_1308;method_5990()V
      official R Lbtn;R()V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class LivingEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbsq;b(B)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class LivingEntity
      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 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 Lbsq;l()V
    • updateGoalControls

      protected void updateGoalControls()
      Mappings:
      Namespace Name Mixin selector
      named updateGoalControls Lnet/minecraft/entity/mob/MobEntity;updateGoalControls()V
      intermediary method_20417 Lnet/minecraft/class_1308;method_20417()V
      official S Lbtn;S()V
    • turnHead

      protected float turnHead(float bodyRotation, float headRotation)
      Overrides:
      turnHead in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named turnHead Lnet/minecraft/entity/LivingEntity;turnHead(FF)F
      intermediary method_6031 Lnet/minecraft/class_1309;method_6031(FF)F
      official f Lbtl;f(FF)F
    • getAmbientSound

      @Nullable protected @Nullable SoundEvent getAmbientSound()
      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 Lbtn;v()Lavn;
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have 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 LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbsq;b(Lua;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have 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 LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbsq;a(Lua;)V
    • dropLoot

      protected void dropLoot(DamageSource damageSource, boolean causedByPlayer)
      Overrides:
      dropLoot in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named dropLoot Lnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/entity/damage/DamageSource;Z)V
      intermediary method_16077 Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_1282;Z)V
      official a Lbtl;a(Lbrj;Z)V
    • getLootTable

      public final RegistryKey<LootTable> getLootTable()
      Overrides:
      getLootTable in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getLootTable Lnet/minecraft/entity/LivingEntity;getLootTable()Lnet/minecraft/registry/RegistryKey;
      intermediary method_5989 Lnet/minecraft/class_1309;method_5989()Lnet/minecraft/class_5321;
      official eB Lbtl;eB()Lakp;
    • getLootTableId

      protected RegistryKey<LootTable> getLootTableId()
      Mappings:
      Namespace Name Mixin selector
      named getLootTableId Lnet/minecraft/entity/mob/MobEntity;getLootTableId()Lnet/minecraft/registry/RegistryKey;
      intermediary method_5991 Lnet/minecraft/class_1308;method_5991()Lnet/minecraft/class_5321;
      official T Lbtn;T()Lakp;
    • getLootTableSeed

      public long getLootTableSeed()
      Overrides:
      getLootTableSeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getLootTableSeed Lnet/minecraft/entity/LivingEntity;getLootTableSeed()J
      intermediary method_51851 Lnet/minecraft/class_1309;method_51851()J
      official eC Lbtl;eC()J
    • setForwardSpeed

      public void setForwardSpeed(float forwardSpeed)
      Mappings:
      Namespace Name Mixin selector
      named setForwardSpeed Lnet/minecraft/entity/mob/MobEntity;setForwardSpeed(F)V
      intermediary method_5930 Lnet/minecraft/class_1308;method_5930(F)V
      official D Lbtn;D(F)V
    • setUpwardSpeed

      public void setUpwardSpeed(float upwardSpeed)
      Mappings:
      Namespace Name Mixin selector
      named setUpwardSpeed Lnet/minecraft/entity/mob/MobEntity;setUpwardSpeed(F)V
      intermediary method_5976 Lnet/minecraft/class_1308;method_5976(F)V
      official E Lbtn;E(F)V
    • setSidewaysSpeed

      public void setSidewaysSpeed(float sidewaysSpeed)
      Mappings:
      Namespace Name Mixin selector
      named setSidewaysSpeed Lnet/minecraft/entity/mob/MobEntity;setSidewaysSpeed(F)V
      intermediary method_5938 Lnet/minecraft/class_1308;method_5938(F)V
      official F Lbtn;F(F)V
    • setMovementSpeed

      public void setMovementSpeed(float movementSpeed)
      Overrides:
      setMovementSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named setMovementSpeed Lnet/minecraft/entity/LivingEntity;setMovementSpeed(F)V
      intermediary method_6125 Lnet/minecraft/class_1309;method_6125(F)V
      official z Lbtl;z(F)V
    • stopMovement

      public void stopMovement()
      Mappings:
      Namespace Name Mixin selector
      named stopMovement Lnet/minecraft/entity/mob/MobEntity;stopMovement()V
      intermediary method_55695 Lnet/minecraft/class_1308;method_55695()V
      official U Lbtn;U()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official m_ Lbtl;m_()V
    • getItemPickUpRangeExpander

      protected Vec3i getItemPickUpRangeExpander()
      Mappings:
      Namespace Name Mixin selector
      named getItemPickUpRangeExpander Lnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;
      intermediary method_42646 Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;
      official V Lbtn;V()Lkh;
    • loot

      protected void loot(ItemEntity item)
      Mappings:
      Namespace Name Mixin selector
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/entity/ItemEntity;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_1542;)V
      official b Lbtn;b(Lcjf;)V
    • tryEquip

      public ItemStack tryEquip(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named tryEquip Lnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_24523 Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official i Lbtn;i(Lcuo;)Lcuo;
    • equipLootStack

      protected void equipLootStack(EquipmentSlot slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named equipLootStack Lnet/minecraft/entity/mob/MobEntity;equipLootStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
      intermediary method_24834 Lnet/minecraft/class_1308;method_24834(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
      official b Lbtn;b(Lbsx;Lcuo;)V
    • updateDropChances

      public void updateDropChances(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named updateDropChances Lnet/minecraft/entity/mob/MobEntity;updateDropChances(Lnet/minecraft/entity/EquipmentSlot;)V
      intermediary method_25939 Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)V
      official e Lbtn;e(Lbsx;)V
    • prefersNewEquipment

      protected boolean prefersNewEquipment(ItemStack newStack, ItemStack oldStack)
      Mappings:
      Namespace Name Mixin selector
      named prefersNewEquipment Lnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_5955 Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official b Lbtn;b(Lcuo;Lcuo;)Z
    • getAttackDamageWith

      private double getAttackDamageWith(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getAttackDamageWith Lnet/minecraft/entity/mob/MobEntity;getAttackDamageWith(Lnet/minecraft/item/ItemStack;)D
      intermediary method_57295 Lnet/minecraft/class_1308;method_57295(Lnet/minecraft/class_1799;)D
      official o Lbtn;o(Lcuo;)D
    • prefersNewDamageableItem

      public boolean prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack)
      Mappings:
      Namespace Name Mixin selector
      named prefersNewDamageableItem Lnet/minecraft/entity/mob/MobEntity;prefersNewDamageableItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_26320 Lnet/minecraft/class_1308;method_26320(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official c Lbtn;c(Lcuo;Lcuo;)Z
    • hasComponentsOtherThanDamage

      private static boolean hasComponentsOtherThanDamage(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named hasComponentsOtherThanDamage Lnet/minecraft/entity/mob/MobEntity;hasComponentsOtherThanDamage(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_57296 Lnet/minecraft/class_1308;method_57296(Lnet/minecraft/class_1799;)Z
      official p Lbtn;p(Lcuo;)Z
    • canPickupItem

      public boolean canPickupItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canPickupItem Lnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_5939 Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Z
      official j Lbtn;j(Lcuo;)Z
    • canGather

      public boolean canGather(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canGather Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_20820 Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Z
      official k Lbtn;k(Lcuo;)Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbtn;h(D)Z
    • cannotDespawn

      public boolean cannotDespawn()
      Mappings:
      Namespace Name Mixin selector
      named cannotDespawn Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
      intermediary method_17326 Lnet/minecraft/class_1308;method_17326()Z
      official W Lbtn;W()Z
    • isDisallowedInPeaceful

      protected boolean isDisallowedInPeaceful()
      Mappings:
      Namespace Name Mixin selector
      named isDisallowedInPeaceful Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
      intermediary method_23734 Lnet/minecraft/class_1308;method_23734()Z
      official X Lbtn;X()Z
    • checkDespawn

      public void checkDespawn()
      Checks whether the entity should be despawned.

      To despawn this entity, call Entity.discard().

      Overrides:
      checkDespawn in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named checkDespawn Lnet/minecraft/entity/Entity;checkDespawn()V
      intermediary method_5982 Lnet/minecraft/class_1297;method_5982()V
      official dC Lbsq;dC()V
    • tickNewAi

      protected final void tickNewAi()
      Overrides:
      tickNewAi in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickNewAi Lnet/minecraft/entity/LivingEntity;tickNewAi()V
      intermediary method_6023 Lnet/minecraft/class_1309;method_6023()V
      official fn Lbtl;fn()V
    • sendAiDebugData

      protected void sendAiDebugData()
      Mappings:
      Namespace Name Mixin selector
      named sendAiDebugData Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
      intermediary method_18409 Lnet/minecraft/class_1308;method_18409()V
      official Y Lbtn;Y()V
    • mobTick

      protected void mobTick()
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      official Z Lbtn;Z()V
    • getMaxLookPitchChange

      public int getMaxLookPitchChange()
      Returns the maximum degrees which the pitch can change when looking.

      This is used by the look control.

      It can return from 1 for entities that can hardly raise their head, like axolotls or dolphins, or 180 for entities that can freely raise and lower their head, like guardians. The default return value is 40.

      Returns:
      the maximum degrees which the pitch can change when looking
      Mappings:
      Namespace Name Mixin selector
      named getMaxLookPitchChange Lnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()I
      intermediary method_5978 Lnet/minecraft/class_1308;method_5978()I
      official aa Lbtn;aa()I
    • getMaxHeadRotation

      public int getMaxHeadRotation()
      Returns the maximum degrees which the head yaw can differ from the body yaw.

      This is used by the body control.

      It can return from 1 for entities that can hardly rotate their head, like axolotls or dolphins, or 180 for entities that can freely rotate their head, like shulkers. The default return value is 75.

      Returns:
      the maximum degrees which the head yaw can differ from the body yaw
      Mappings:
      Namespace Name Mixin selector
      named getMaxHeadRotation Lnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()I
      intermediary method_5986 Lnet/minecraft/class_1308;method_5986()I
      official ab Lbtn;ab()I
    • clampHeadYaw

      protected void clampHeadYaw()
      Mappings:
      Namespace Name Mixin selector
      named clampHeadYaw Lnet/minecraft/entity/mob/MobEntity;clampHeadYaw()V
      intermediary method_56080 Lnet/minecraft/class_1308;method_56080()V
      official ac Lbtn;ac()V
    • getMaxLookYawChange

      public int getMaxLookYawChange()
      Returns the maximum degrees which the yaw can change when looking.

      This is used by the look control.

      The default return value is 10.

      Returns:
      the maximum degrees which the yaw can change when looking
      Mappings:
      Namespace Name Mixin selector
      named getMaxLookYawChange Lnet/minecraft/entity/mob/MobEntity;getMaxLookYawChange()I
      intermediary method_20240 Lnet/minecraft/class_1308;method_20240()I
      official ae Lbtn;ae()I
    • lookAtEntity

      public void lookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange)
      Mappings:
      Namespace Name Mixin selector
      named lookAtEntity Lnet/minecraft/entity/mob/MobEntity;lookAtEntity(Lnet/minecraft/entity/Entity;FF)V
      intermediary method_5951 Lnet/minecraft/class_1308;method_5951(Lnet/minecraft/class_1297;FF)V
      official a Lbtn;a(Lbsq;FF)V
    • changeAngle

      private float changeAngle(float from, float to, float max)
      Changes the angle from from to to, or by max degrees if to is too big a change.

      This is the same as LookControl.changeAngle(float, float, float).

      Mappings:
      Namespace Name Mixin selector
      named changeAngle Lnet/minecraft/entity/mob/MobEntity;changeAngle(FFF)F
      intermediary method_5960 Lnet/minecraft/class_1308;method_5960(FFF)F
      official a Lbtn;a(FFF)F
    • canMobSpawn

      public static boolean canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canMobSpawn Lnet/minecraft/entity/mob/MobEntity;canMobSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_20636 Lnet/minecraft/class_1308;method_20636(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official a Lbtn;a(Lbsw;Ldcv;Lbtp;Ljd;Layv;)Z
    • canSpawn

      public boolean canSpawn(WorldAccess world, SpawnReason spawnReason)
      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 Lbtn;a(Ldcv;Lbtp;)Z
    • canSpawn

      public boolean canSpawn(WorldView world)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
      intermediary method_5957 Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
      official a Lbtn;a(Ldcx;)Z
    • getLimitPerChunk

      public int getLimitPerChunk()
      Mappings:
      Namespace Name Mixin selector
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      official af Lbtn;af()I
    • spawnsTooManyForEachTry

      public boolean spawnsTooManyForEachTry(int count)
      Mappings:
      Namespace Name Mixin selector
      named spawnsTooManyForEachTry Lnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(I)Z
      intermediary method_5969 Lnet/minecraft/class_1308;method_5969(I)Z
      official d Lbtn;d(I)Z
    • getSafeFallDistance

      public int getSafeFallDistance()
      Returns the maximum height of a fall the entity takes during pathfinding.
      Overrides:
      getSafeFallDistance in class LivingEntity
      Returns:
      the maximum height of a fall the entity takes during pathfinding
      Mappings:
      Namespace Name Mixin selector
      named getSafeFallDistance Lnet/minecraft/entity/Entity;getSafeFallDistance()I
      intermediary method_5850 Lnet/minecraft/class_1297;method_5850()I
      official cy Lbsq;cy()I
    • getHandItems

      public Iterable<ItemStack> getHandItems()
      Overrides:
      getHandItems in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHandItems Lnet/minecraft/entity/LivingEntity;getHandItems()Ljava/lang/Iterable;
      intermediary method_5877 Lnet/minecraft/class_1309;method_5877()Ljava/lang/Iterable;
      official eX Lbtl;eX()Ljava/lang/Iterable;
    • getArmorItems

      public Iterable<ItemStack> getArmorItems()
      Specified by:
      getArmorItems in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getArmorItems Lnet/minecraft/entity/LivingEntity;getArmorItems()Ljava/lang/Iterable;
      intermediary method_5661 Lnet/minecraft/class_1309;method_5661()Ljava/lang/Iterable;
      official eW Lbtl;eW()Ljava/lang/Iterable;
    • getBodyArmor

      public ItemStack getBodyArmor()
      Mappings:
      Namespace Name Mixin selector
      named getBodyArmor Lnet/minecraft/entity/mob/MobEntity;getBodyArmor()Lnet/minecraft/item/ItemStack;
      intermediary method_56676 Lnet/minecraft/class_1308;method_56676()Lnet/minecraft/class_1799;
      official fN Lbtn;fN()Lcuo;
    • canUseSlot

      public boolean canUseSlot(EquipmentSlot slot)
      Overrides:
      canUseSlot in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canUseSlot Lnet/minecraft/entity/LivingEntity;canUseSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_56991 Lnet/minecraft/class_1309;method_56991(Lnet/minecraft/class_1304;)Z
      official d Lbtl;d(Lbsx;)Z
    • isWearingBodyArmor

      public boolean isWearingBodyArmor()
      Mappings:
      Namespace Name Mixin selector
      named isWearingBodyArmor Lnet/minecraft/entity/mob/MobEntity;isWearingBodyArmor()Z
      intermediary method_56677 Lnet/minecraft/class_1308;method_56677()Z
      official fO Lbtn;fO()Z
    • isHorseArmor

      public boolean isHorseArmor(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named isHorseArmor Lnet/minecraft/entity/mob/MobEntity;isHorseArmor(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6773 Lnet/minecraft/class_1308;method_6773(Lnet/minecraft/class_1799;)Z
      official l Lbtn;l(Lcuo;)Z
    • equipBodyArmor

      public void equipBodyArmor(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named equipBodyArmor Lnet/minecraft/entity/mob/MobEntity;equipBodyArmor(Lnet/minecraft/item/ItemStack;)V
      intermediary method_56678 Lnet/minecraft/class_1308;method_56678(Lnet/minecraft/class_1799;)V
      official m Lbtn;m(Lcuo;)V
    • getAllArmorItems

      public Iterable<ItemStack> getAllArmorItems()
      Overrides:
      getAllArmorItems in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getAllArmorItems Lnet/minecraft/entity/LivingEntity;getAllArmorItems()Ljava/lang/Iterable;
      intermediary method_56674 Lnet/minecraft/class_1309;method_56674()Ljava/lang/Iterable;
      official eY Lbtl;eY()Ljava/lang/Iterable;
    • getEquippedStack

      public ItemStack getEquippedStack(EquipmentSlot slot)
      Specified by:
      getEquippedStack in interface EquipmentHolder
      Specified by:
      getEquippedStack in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getEquippedStack Lnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;
      intermediary method_6118 Lnet/minecraft/class_1309;method_6118(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;
      official a Lbtl;a(Lbsx;)Lcuo;
    • equipStack

      public void equipStack(EquipmentSlot slot, ItemStack stack)
      Specified by:
      equipStack in interface EquipmentHolder
      Specified by:
      equipStack in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named equipStack Lnet/minecraft/entity/LivingEntity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
      intermediary method_5673 Lnet/minecraft/class_1309;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
      official a Lbtl;a(Lbsx;Lcuo;)V
    • dropEquipment

      protected void dropEquipment(ServerWorld world, DamageSource source, boolean causedByPlayer)
      Overrides:
      dropEquipment in class LivingEntity
      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 Lbtl;a(Laqt;Lbrj;Z)V
    • getDropChance

      protected float getDropChance(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named getDropChance Lnet/minecraft/entity/mob/MobEntity;getDropChance(Lnet/minecraft/entity/EquipmentSlot;)F
      intermediary method_5929 Lnet/minecraft/class_1308;method_5929(Lnet/minecraft/class_1304;)F
      official f Lbtn;f(Lbsx;)F
    • createEquipmentLootParameters

      private LootContextParameterSet createEquipmentLootParameters(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named createEquipmentLootParameters Lnet/minecraft/entity/mob/MobEntity;createEquipmentLootParameters(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/loot/context/LootContextParameterSet;
      intermediary method_58635 Lnet/minecraft/class_1308;method_58635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8567;
      official a Lbtn;a(Laqt;)Lero;
    • setEquipmentFromTable

      public void setEquipmentFromTable(EquipmentTable equipmentTable)
      Mappings:
      Namespace Name Mixin selector
      named setEquipmentFromTable Lnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/entity/EquipmentTable;)V
      intermediary method_58634 Lnet/minecraft/class_1308;method_58634(Lnet/minecraft/class_9652;)V
      official a Lbtn;a(Lbsz;)V
    • setEquipmentFromTable

      public void setEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot,Float> slotDropChances)
      Mappings:
      Namespace Name Mixin selector
      named setEquipmentFromTable Lnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/registry/RegistryKey;Ljava/util/Map;)V
      intermediary method_59665 Lnet/minecraft/class_1308;method_59665(Lnet/minecraft/class_5321;Ljava/util/Map;)V
      official a Lbtn;a(Lakp;Ljava/util/Map;)V
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbtn;a(Layv;Lbqo;)V
    • getEquipmentForSlot

      @Nullable public static @Nullable Item getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel)
      Mappings:
      Namespace Name Mixin selector
      named getEquipmentForSlot Lnet/minecraft/entity/mob/MobEntity;getEquipmentForSlot(Lnet/minecraft/entity/EquipmentSlot;I)Lnet/minecraft/item/Item;
      intermediary method_5948 Lnet/minecraft/class_1308;method_5948(Lnet/minecraft/class_1304;I)Lnet/minecraft/class_1792;
      official a Lbtn;a(Lbsx;I)Lcuj;
    • updateEnchantments

      protected void updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named updateEnchantments Lnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5984 Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbtn;a(Lddj;Layv;Lbqo;)V
    • enchantMainHandItem

      protected void enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named enchantMainHandItem Lnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_30759 Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official b Lbtn;b(Lddj;Layv;Lbqo;)V
    • enchantEquipment

      protected void enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named enchantEquipment Lnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_30758 Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1304;Lnet/minecraft/class_1266;)V
      official a Lbtn;a(Lddj;Layv;Lbsx;Lbqo;)V
    • enchantEquipment

      private void enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named enchantEquipment Lnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/util/math/random/Random;FLnet/minecraft/world/LocalDifficulty;)V
      intermediary method_59927 Lnet/minecraft/class_1308;method_59927(Lnet/minecraft/class_5425;Lnet/minecraft/class_1304;Lnet/minecraft/class_5819;FLnet/minecraft/class_1266;)V
      official a Lbtn;a(Lddj;Lbsx;Layv;FLbqo;)V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      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 Lbtn;a(Lddj;Lbqo;Lbtp;Lbuf;)Lbuf;
    • setPersistent

      public void setPersistent()
      Mappings:
      Namespace Name Mixin selector
      named setPersistent Lnet/minecraft/entity/mob/MobEntity;setPersistent()V
      intermediary method_5971 Lnet/minecraft/class_1308;method_5971()V
      official fP Lbtn;fP()V
    • setEquipmentDropChance

      public void setEquipmentDropChance(EquipmentSlot slot, float dropChance)
      Specified by:
      setEquipmentDropChance in interface EquipmentHolder
      Mappings:
      Namespace Name Mixin selector
      named setEquipmentDropChance Lnet/minecraft/entity/EquipmentHolder;setEquipmentDropChance(Lnet/minecraft/entity/EquipmentSlot;F)V
      intermediary method_5946 Lnet/minecraft/class_9460;method_5946(Lnet/minecraft/class_1304;F)V
      official a Lbta;a(Lbsx;F)V
    • canPickUpLoot

      public boolean canPickUpLoot()
      Mappings:
      Namespace Name Mixin selector
      named canPickUpLoot Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot()Z
      intermediary method_5936 Lnet/minecraft/class_1308;method_5936()Z
      official fQ Lbtn;fQ()Z
    • setCanPickUpLoot

      public void setCanPickUpLoot(boolean canPickUpLoot)
      Mappings:
      Namespace Name Mixin selector
      named setCanPickUpLoot Lnet/minecraft/entity/mob/MobEntity;setCanPickUpLoot(Z)V
      intermediary method_5952 Lnet/minecraft/class_1308;method_5952(Z)V
      official a_ Lbtn;a_(Z)V
    • canEquip

      public boolean canEquip(ItemStack stack)
      Overrides:
      canEquip in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canEquip Lnet/minecraft/entity/LivingEntity;canEquip(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_18397 Lnet/minecraft/class_1309;method_18397(Lnet/minecraft/class_1799;)Z
      official f Lbtl;f(Lcuo;)Z
    • isPersistent

      public boolean isPersistent()
      Mappings:
      Namespace Name Mixin selector
      named isPersistent Lnet/minecraft/entity/mob/MobEntity;isPersistent()Z
      intermediary method_5947 Lnet/minecraft/class_1308;method_5947()Z
      official fR Lbtn;fR()Z
    • interact

      public final ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Overrides:
      interact in class Entity
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official a Lbsq;a(Lcmv;Lbqp;)Lbqq;
    • interactWithItem

      private ActionResult interactWithItem(PlayerEntity player, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      named interactWithItem Lnet/minecraft/entity/mob/MobEntity;interactWithItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_29506 Lnet/minecraft/class_1308;method_29506(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official c Lbtn;c(Lcmv;Lbqp;)Lbqq;
    • onPlayerSpawnedChild

      protected void onPlayerSpawnedChild(PlayerEntity player, MobEntity child)
      Mappings:
      Namespace Name Mixin selector
      named onPlayerSpawnedChild Lnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)V
      intermediary method_18249 Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)V
      official a Lbtn;a(Lcmv;Lbtn;)V
    • interactMob

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lbtn;b(Lcmv;Lbqp;)Lbqq;
    • isInWalkTargetRange

      public boolean isInWalkTargetRange()
      Mappings:
      Namespace Name Mixin selector
      named isInWalkTargetRange Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange()Z
      intermediary method_18411 Lnet/minecraft/class_1308;method_18411()Z
      official fS Lbtn;fS()Z
    • isInWalkTargetRange

      public boolean isInWalkTargetRange(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named isInWalkTargetRange Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_18407 Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Z
      official a Lbtn;a(Ljd;)Z
    • setPositionTarget

      public void setPositionTarget(BlockPos target, int range)
      Mappings:
      Namespace Name Mixin selector
      named setPositionTarget Lnet/minecraft/entity/mob/MobEntity;setPositionTarget(Lnet/minecraft/util/math/BlockPos;I)V
      intermediary method_18408 Lnet/minecraft/class_1308;method_18408(Lnet/minecraft/class_2338;I)V
      official a Lbtn;a(Ljd;I)V
    • getPositionTarget

      public BlockPos getPositionTarget()
      Mappings:
      Namespace Name Mixin selector
      named getPositionTarget Lnet/minecraft/entity/mob/MobEntity;getPositionTarget()Lnet/minecraft/util/math/BlockPos;
      intermediary method_18412 Lnet/minecraft/class_1308;method_18412()Lnet/minecraft/class_2338;
      official fT Lbtn;fT()Ljd;
    • getPositionTargetRange

      public float getPositionTargetRange()
      Mappings:
      Namespace Name Mixin selector
      named getPositionTargetRange Lnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()F
      intermediary method_18413 Lnet/minecraft/class_1308;method_18413()F
      official fU Lbtn;fU()F
    • clearPositionTarget

      public void clearPositionTarget()
      Mappings:
      Namespace Name Mixin selector
      named clearPositionTarget Lnet/minecraft/entity/mob/MobEntity;clearPositionTarget()V
      intermediary method_35055 Lnet/minecraft/class_1308;method_35055()V
      official fV Lbtn;fV()V
    • hasPositionTarget

      public boolean hasPositionTarget()
      Mappings:
      Namespace Name Mixin selector
      named hasPositionTarget Lnet/minecraft/entity/mob/MobEntity;hasPositionTarget()Z
      intermediary method_18410 Lnet/minecraft/class_1308;method_18410()Z
      official fW Lbtn;fW()Z
    • convertTo

      @Nullable public <T extends MobEntity> T convertTo(EntityType<T> entityType, boolean keepEquipment)
      Converts this entity to the provided entityType.

      The new entity will keep many of the properties set for this entity, including its vehicle, its name and whether it is persistent or not.

      If keepEquipment is true, it will also keep its equipment.

      Parameters:
      entityType - the entity type to convert to
      keepEquipment - whether the equipment of this entity should be kept
      Mappings:
      Namespace Name Mixin selector
      named convertTo Lnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Z)Lnet/minecraft/entity/mob/MobEntity;
      intermediary method_29243 Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Z)Lnet/minecraft/class_1308;
      official a Lbtn;a(Lbsw;Z)Lbtn;
    • updateLeash

      protected void updateLeash()
      Mappings:
      Namespace Name Mixin selector
      named updateLeash Lnet/minecraft/entity/mob/MobEntity;updateLeash()V
      intermediary method_5995 Lnet/minecraft/class_1308;method_5995()V
      official fX Lbtn;fX()V
    • detachLeash

      public void detachLeash(boolean sendPacket, boolean dropItem)
      Mappings:
      Namespace Name Mixin selector
      named detachLeash Lnet/minecraft/entity/mob/MobEntity;detachLeash(ZZ)V
      intermediary method_5932 Lnet/minecraft/class_1308;method_5932(ZZ)V
      official a Lbtn;a(ZZ)V
    • canBeLeashedBy

      public boolean canBeLeashedBy(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named canBeLeashedBy Lnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_5931 Lnet/minecraft/class_1308;method_5931(Lnet/minecraft/class_1657;)Z
      official a Lbtn;a(Lcmv;)Z
    • isLeashed

      public boolean isLeashed()
      Mappings:
      Namespace Name Mixin selector
      named isLeashed Lnet/minecraft/entity/mob/MobEntity;isLeashed()Z
      intermediary method_5934 Lnet/minecraft/class_1308;method_5934()Z
      official fY Lbtn;fY()Z
    • mightBeLeashed

      public boolean mightBeLeashed()
      Mappings:
      Namespace Name Mixin selector
      named mightBeLeashed Lnet/minecraft/entity/mob/MobEntity;mightBeLeashed()Z
      intermediary method_58151 Lnet/minecraft/class_1308;method_58151()Z
      official fZ Lbtn;fZ()Z
    • getHoldingEntity

      @Nullable public @Nullable Entity getHoldingEntity()
      Mappings:
      Namespace Name Mixin selector
      named getHoldingEntity Lnet/minecraft/entity/mob/MobEntity;getHoldingEntity()Lnet/minecraft/entity/Entity;
      intermediary method_5933 Lnet/minecraft/class_1308;method_5933()Lnet/minecraft/class_1297;
      official ga Lbtn;ga()Lbsq;
    • attachLeash

      public void attachLeash(Entity entity, boolean sendPacket)
      Mappings:
      Namespace Name Mixin selector
      named attachLeash Lnet/minecraft/entity/mob/MobEntity;attachLeash(Lnet/minecraft/entity/Entity;Z)V
      intermediary method_5954 Lnet/minecraft/class_1308;method_5954(Lnet/minecraft/class_1297;Z)V
      official b Lbtn;b(Lbsq;Z)V
    • setHoldingEntityId

      public void setHoldingEntityId(int id)
      Mappings:
      Namespace Name Mixin selector
      named setHoldingEntityId Lnet/minecraft/entity/mob/MobEntity;setHoldingEntityId(I)V
      intermediary method_18810 Lnet/minecraft/class_1308;method_18810(I)V
      official r Lbtn;r(I)V
    • startRiding

      public boolean startRiding(Entity entity, boolean force)
      Starts riding entity.

      For example, player.startRiding(horse) causes the player to ride a horse; the opposite, horse.startRiding(player), will cause the horse to ride a player.

      This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa) unless force is true. If this entity is already riding another entity, it will stop riding that entity first.

      Overrides:
      startRiding in class Entity
      Parameters:
      force - whether to bypass the entity's rideability check
      Returns:
      whether this entity successfully started riding
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named startRiding Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
      intermediary method_5873 Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
      official a Lbsq;a(Lbsq;Z)Z
    • readLeashNbt

      private void readLeashNbt()
      Mappings:
      Namespace Name Mixin selector
      named readLeashNbt Lnet/minecraft/entity/mob/MobEntity;readLeashNbt()V
      intermediary method_5940 Lnet/minecraft/class_1308;method_5940()V
      official gi Lbtn;gi()V
    • canMoveVoluntarily

      public boolean canMoveVoluntarily()
      Overrides:
      canMoveVoluntarily in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canMoveVoluntarily Lnet/minecraft/entity/Entity;canMoveVoluntarily()Z
      intermediary method_6034 Lnet/minecraft/class_1297;method_6034()Z
      official dc Lbsq;dc()Z
    • setAiDisabled

      public void setAiDisabled(boolean aiDisabled)
      Mappings:
      Namespace Name Mixin selector
      named setAiDisabled Lnet/minecraft/entity/mob/MobEntity;setAiDisabled(Z)V
      intermediary method_5977 Lnet/minecraft/class_1308;method_5977(Z)V
      official c Lbtn;c(Z)V
    • setLeftHanded

      public void setLeftHanded(boolean leftHanded)
      Mappings:
      Namespace Name Mixin selector
      named setLeftHanded Lnet/minecraft/entity/mob/MobEntity;setLeftHanded(Z)V
      intermediary method_5937 Lnet/minecraft/class_1308;method_5937(Z)V
      official u Lbtn;u(Z)V
    • setAttacking

      public void setAttacking(boolean attacking)
      Mappings:
      Namespace Name Mixin selector
      named setAttacking Lnet/minecraft/entity/mob/MobEntity;setAttacking(Z)V
      intermediary method_19540 Lnet/minecraft/class_1308;method_19540(Z)V
      official v Lbtn;v(Z)V
    • isAiDisabled

      public boolean isAiDisabled()
      Mappings:
      Namespace Name Mixin selector
      named isAiDisabled Lnet/minecraft/entity/mob/MobEntity;isAiDisabled()Z
      intermediary method_5987 Lnet/minecraft/class_1308;method_5987()Z
      official gb Lbtn;gb()Z
    • isLeftHanded

      public boolean isLeftHanded()
      Mappings:
      Namespace Name Mixin selector
      named isLeftHanded Lnet/minecraft/entity/mob/MobEntity;isLeftHanded()Z
      intermediary method_5961 Lnet/minecraft/class_1308;method_5961()Z
      official gc Lbtn;gc()Z
    • isAttacking

      public boolean isAttacking()
      Mappings:
      Namespace Name Mixin selector
      named isAttacking Lnet/minecraft/entity/mob/MobEntity;isAttacking()Z
      intermediary method_6510 Lnet/minecraft/class_1308;method_6510()Z
      official gd Lbtn;gd()Z
    • setBaby

      public void setBaby(boolean baby)
      Mappings:
      Namespace Name Mixin selector
      named setBaby Lnet/minecraft/entity/mob/MobEntity;setBaby(Z)V
      intermediary method_7217 Lnet/minecraft/class_1308;method_7217(Z)V
      official a Lbtn;a(Z)V
    • getMainArm

      public Arm getMainArm()
      Specified by:
      getMainArm in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getMainArm Lnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;
      intermediary method_6068 Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;
      official fr Lbtl;fr()Lbtf;
    • isInAttackRange

      public boolean isInAttackRange(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named isInAttackRange Lnet/minecraft/entity/mob/MobEntity;isInAttackRange(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_42150 Lnet/minecraft/class_1308;method_42150(Lnet/minecraft/class_1309;)Z
      official i Lbtn;i(Lbtl;)Z
    • getAttackBox

      protected Box getAttackBox()
      Gets the area in which this mob can attack entities whose hitbox intersects it.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getAttackBox Lnet/minecraft/entity/mob/MobEntity;getAttackBox()Lnet/minecraft/util/math/Box;
      intermediary method_53511 Lnet/minecraft/class_1308;method_53511()Lnet/minecraft/class_238;
      official ge Lbtn;ge()Lewr;
    • tryAttack

      public boolean tryAttack(Entity target)
      Overrides:
      tryAttack in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tryAttack Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
      intermediary method_6121 Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Z
      official D Lbtl;D(Lbsq;)Z
    • playAttackSound

      protected void playAttackSound()
      Mappings:
      Namespace Name Mixin selector
      named playAttackSound Lnet/minecraft/entity/mob/MobEntity;playAttackSound()V
      intermediary method_59928 Lnet/minecraft/class_1308;method_59928()V
      official gf Lbtn;gf()V
    • isAffectedByDaylight

      protected boolean isAffectedByDaylight()
      Mappings:
      Namespace Name Mixin selector
      named isAffectedByDaylight Lnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Z
      intermediary method_5972 Lnet/minecraft/class_1308;method_5972()Z
      official gg Lbtn;gg()Z
    • swimUpward

      protected void swimUpward(TagKey<Fluid> fluid)
      Overrides:
      swimUpward in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named swimUpward Lnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
      intermediary method_6010 Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)V
      official c Lbtl;c(Lawt;)V
    • clearGoalsAndTasks

      public void clearGoalsAndTasks()
      Mappings:
      Namespace Name Mixin selector
      named clearGoalsAndTasks Lnet/minecraft/entity/mob/MobEntity;clearGoalsAndTasks()V
      intermediary method_35056 Lnet/minecraft/class_1308;method_35056()V
      official gh Lbtn;gh()V
    • clearGoals

      public void clearGoals(Predicate<Goal> predicate)
      Mappings:
      Namespace Name Mixin selector
      named clearGoals Lnet/minecraft/entity/mob/MobEntity;clearGoals(Ljava/util/function/Predicate;)V
      intermediary method_47825 Lnet/minecraft/class_1308;method_47825(Ljava/util/function/Predicate;)V
      official c Lbtn;c(Ljava/util/function/Predicate;)V
    • removeFromDimension

      protected void removeFromDimension()
      Removes this entity from the current dimension.

      This calls Entity.setRemoved(net.minecraft.entity.Entity.RemovalReason) by default. Subclasses can add other logics, such as setting the stack count of equipped stacks to zero.

      Overrides:
      removeFromDimension in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named removeFromDimension Lnet/minecraft/entity/Entity;removeFromDimension()V
      intermediary method_30076 Lnet/minecraft/class_1297;method_30076()V
      official cw Lbsq;cw()V
    • getPickBlockStack

      @Nullable public @Nullable ItemStack getPickBlockStack()
      Returns the stack for creative "pick block" functionality, or null if there is none.

      If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that MobEntity handles the spawn eggs. ItemFrameEntity instead returns the copy of the stack held in the frame.

      Overrides:
      getPickBlockStack in class Entity
      Returns:
      the stack for creative "pick block" functionality, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      official dD Lbsq;dD()Lcuo;