Class AllayEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, InventoryOwner, Leashable, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, Vibrations, ServerWaypoint, Waypoint

public class AllayEntity extends PathAwareEntity implements InventoryOwner, Vibrations
Mappings:
Namespace Name
named net/minecraft/entity/passive/AllayEntity
intermediary net/minecraft/class_7298
official cno
  • Field Details

    • ITEM_PICKUP_RANGE_EXPANDER

      private static final Vec3i ITEM_PICKUP_RANGE_EXPANDER
      Mappings:
      Namespace Name Mixin selector
      named ITEM_PICKUP_RANGE_EXPANDER Lnet/minecraft/entity/passive/AllayEntity;ITEM_PICKUP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
      intermediary field_38399 Lnet/minecraft/class_7298;field_38399:Lnet/minecraft/class_2382;
      official e Lcno;e:Lkg;
    • field_39461

      private static final int field_39461
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39461 Lnet/minecraft/entity/passive/AllayEntity;field_39461:I
      intermediary field_39461 Lnet/minecraft/class_7298;field_39461:I
      official ck Lcno;ck:I
    • field_39462

      private static final float field_39462
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39462 Lnet/minecraft/entity/passive/AllayEntity;field_39462:F
      intermediary field_39462 Lnet/minecraft/class_7298;field_39462:F
      official cl Lcno;cl:F
    • field_39463

      private static final float field_39463
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39463 Lnet/minecraft/entity/passive/AllayEntity;field_39463:F
      intermediary field_39463 Lnet/minecraft/class_7298;field_39463:F
      official cm Lcno;cm:F
    • DEFAULT_DUPLICATION_COOLDOWN

      private static final int DEFAULT_DUPLICATION_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_DUPLICATION_COOLDOWN Lnet/minecraft/entity/passive/AllayEntity;DEFAULT_DUPLICATION_COOLDOWN:I
      intermediary field_57621 Lnet/minecraft/class_7298;field_57621:I
      official cn Lcno;cn:I
    • DUPLICATION_COOLDOWN

      private static final int DUPLICATION_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DUPLICATION_COOLDOWN Lnet/minecraft/entity/passive/AllayEntity;DUPLICATION_COOLDOWN:I
      intermediary field_39465 Lnet/minecraft/class_7298;field_39465:I
      official co Lcno;co:I
    • field_39679

      private static final int field_39679
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39679 Lnet/minecraft/entity/passive/AllayEntity;field_39679:I
      intermediary field_39679 Lnet/minecraft/class_7298;field_39679:I
      official cp Lcno;cp:I
    • field_54974

      public static final int field_54974
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54974 Lnet/minecraft/entity/passive/AllayEntity;field_54974:I
      intermediary field_54974 Lnet/minecraft/class_7298;field_54974:I
      official a Lcno;a:I
    • DANCING

      private static final TrackedData<Boolean> DANCING
      Mappings:
      Namespace Name Mixin selector
      named DANCING Lnet/minecraft/entity/passive/AllayEntity;DANCING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_39466 Lnet/minecraft/class_7298;field_39466:Lnet/minecraft/class_2940;
      official cq Lcno;cq:Lalh;
    • CAN_DUPLICATE

      private static final TrackedData<Boolean> CAN_DUPLICATE
      Mappings:
      Namespace Name Mixin selector
      named CAN_DUPLICATE Lnet/minecraft/entity/passive/AllayEntity;CAN_DUPLICATE:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_39467 Lnet/minecraft/class_7298;field_39467:Lnet/minecraft/class_2940;
      official cr Lcno;cr:Lalh;
    • SENSORS

      protected static final ImmutableList<SensorType<? extends Sensor<? super AllayEntity>>> SENSORS
      Mappings:
      Namespace Name Mixin selector
      named SENSORS Lnet/minecraft/entity/passive/AllayEntity;SENSORS:Lcom/google/common/collect/ImmutableList;
      intermediary field_38398 Lnet/minecraft/class_7298;field_38398:Lcom/google/common/collect/ImmutableList;
      official b Lcno;b:Lcom/google/common/collect/ImmutableList;
    • MEMORY_MODULES

      protected static final ImmutableList<MemoryModuleType<?>> MEMORY_MODULES
      Mappings:
      Namespace Name Mixin selector
      named MEMORY_MODULES Lnet/minecraft/entity/passive/AllayEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;
      intermediary field_38403 Lnet/minecraft/class_7298;field_38403:Lcom/google/common/collect/ImmutableList;
      official c Lcno;c:Lcom/google/common/collect/ImmutableList;
    • THROW_SOUND_PITCHES

      public static final ImmutableList<Float> THROW_SOUND_PITCHES
      Mappings:
      Namespace Name Mixin selector
      named THROW_SOUND_PITCHES Lnet/minecraft/entity/passive/AllayEntity;THROW_SOUND_PITCHES:Lcom/google/common/collect/ImmutableList;
      intermediary field_38937 Lnet/minecraft/class_7298;field_38937:Lcom/google/common/collect/ImmutableList;
      official d Lcno;d:Lcom/google/common/collect/ImmutableList;
    • gameEventHandler

      private final EntityGameEventHandler<Vibrations.VibrationListener> gameEventHandler
      Mappings:
      Namespace Name Mixin selector
      named gameEventHandler Lnet/minecraft/entity/passive/AllayEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
      intermediary field_38401 Lnet/minecraft/class_7298;field_38401:Lnet/minecraft/class_5715;
      official cs Lcno;cs:Leiy;
    • vibrationListenerData

      private Vibrations.ListenerData vibrationListenerData
      Mappings:
      Namespace Name Mixin selector
      named vibrationListenerData Lnet/minecraft/entity/passive/AllayEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
      intermediary field_44596 Lnet/minecraft/class_7298;field_44596:Lnet/minecraft/class_8514$class_8515;
      official ct Lcno;ct:Lejk$a;
    • vibrationCallback

      private final Vibrations.Callback vibrationCallback
      Mappings:
      Namespace Name Mixin selector
      named vibrationCallback Lnet/minecraft/entity/passive/AllayEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;
      intermediary field_39468 Lnet/minecraft/class_7298;field_39468:Lnet/minecraft/class_8514$class_5719;
      official cu Lcno;cu:Lejk$d;
    • jukeboxEventHandler

      private final EntityGameEventHandler<AllayEntity.JukeboxEventListener> jukeboxEventHandler
      Mappings:
      Namespace Name Mixin selector
      named jukeboxEventHandler Lnet/minecraft/entity/passive/AllayEntity;jukeboxEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
      intermediary field_39469 Lnet/minecraft/class_7298;field_39469:Lnet/minecraft/class_5715;
      official cv Lcno;cv:Leiy;
    • inventory

      private final SimpleInventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/entity/passive/AllayEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;
      intermediary field_38402 Lnet/minecraft/class_7298;field_38402:Lnet/minecraft/class_1277;
      official cw Lcno;cw:Lbxr;
    • jukeboxPos

      @Nullable private @Nullable BlockPos jukeboxPos
      Mappings:
      Namespace Name Mixin selector
      named jukeboxPos Lnet/minecraft/entity/passive/AllayEntity;jukeboxPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_39470 Lnet/minecraft/class_7298;field_39470:Lnet/minecraft/class_2338;
      official cx Lcno;cx:Ljb;
    • duplicationCooldown

      private long duplicationCooldown
      Mappings:
      Namespace Name Mixin selector
      named duplicationCooldown Lnet/minecraft/entity/passive/AllayEntity;duplicationCooldown:J
      intermediary field_39471 Lnet/minecraft/class_7298;field_39471:J
      official cy Lcno;cy:J
    • itemHoldAnimationTicks

      private float itemHoldAnimationTicks
      Mappings:
      Namespace Name Mixin selector
      named itemHoldAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;itemHoldAnimationTicks:F
      intermediary field_38935 Lnet/minecraft/class_7298;field_38935:F
      official cz Lcno;cz:F
    • lastItemHoldAnimationTicks

      private float lastItemHoldAnimationTicks
      Mappings:
      Namespace Name Mixin selector
      named lastItemHoldAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;lastItemHoldAnimationTicks:F
      intermediary field_38936 Lnet/minecraft/class_7298;field_38936:F
      official cA Lcno;cA:F
    • danceTicks

      private float danceTicks
      Mappings:
      Namespace Name Mixin selector
      named danceTicks Lnet/minecraft/entity/passive/AllayEntity;danceTicks:F
      intermediary field_39472 Lnet/minecraft/class_7298;field_39472:F
      official cB Lcno;cB:F
    • spinningAnimationTicks

      private float spinningAnimationTicks
      Mappings:
      Namespace Name Mixin selector
      named spinningAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;spinningAnimationTicks:F
      intermediary field_39473 Lnet/minecraft/class_7298;field_39473:F
      official cC Lcno;cC:F
    • lastSpinningAnimationTicks

      private float lastSpinningAnimationTicks
      Mappings:
      Namespace Name Mixin selector
      named lastSpinningAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;lastSpinningAnimationTicks:F
      intermediary field_39474 Lnet/minecraft/class_7298;field_39474:F
      official cD Lcno;cD:F
  • Constructor Details

    • AllayEntity

      public AllayEntity(EntityType<? extends AllayEntity> 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> Lbzm;<init>(Lbzv;Ldmu;)V
  • Method Details

    • createBrainProfile

      protected Brain.Profile<AllayEntity> createBrainProfile()
      Overrides:
      createBrainProfile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named createBrainProfile Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
      intermediary method_28306 Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
      official ei Lcam;ei()Lcbm$b;
    • deserializeBrain

      protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      deserializeBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named deserializeBrain Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18867 Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      official a Lcam;a(Lcom/mojang/serialization/Dynamic;)Lcbm;
    • getBrain

      public Brain<AllayEntity> getBrain()
      Overrides:
      getBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBrain Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18868 Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
      official eh Lcam;eh()Lcbm;
    • createAllayAttributes

      public static DefaultAttributeContainer.Builder createAllayAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createAllayAttributes Lnet/minecraft/entity/passive/AllayEntity;createAllayAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_42655 Lnet/minecraft/class_7298;method_42655()Lnet/minecraft/class_5132$class_5133;
      official l Lcno;l()Lcbr$a;
    • createNavigation

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

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbzm;a(Lall$a;)V
    • travel

      public void travel(Vec3d movementInput)
      Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.

      See vanilla examples of custom horse vehicle and

      invalid reference
      flying entities
      .
      Overrides:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      official k Lcam;k(Lfis;)V
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbzm;a(Laub;Lbyb;F)Z
    • isInSameTeam

      protected boolean isInSameTeam(Entity other)
      Overrides:
      isInSameTeam in class Entity
      Mappings:
      Namespace Name Mixin selector
      named isInSameTeam Lnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Z
      intermediary method_61416 Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Z
      official u Lbzm;u(Lbzm;)Z
    • isLikedBy

      private boolean isLikedBy(@Nullable @Nullable Entity player)
      Mappings:
      Namespace Name Mixin selector
      named isLikedBy Lnet/minecraft/entity/passive/AllayEntity;isLikedBy(Lnet/minecraft/entity/Entity;)Z
      intermediary method_65349 Lnet/minecraft/class_7298;method_65349(Lnet/minecraft/class_1297;)Z
      official G Lcno;G(Lbzm;)Z
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lbzm;b(Ljb;Leeb;)V
    • 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
      Implementation Note:
      If on ground, this calls Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, double), which can add or reduce fall damage, emits GameEvent.HIT_GROUND, then calls Entity.onLanding(). Otherwise, if heightDifference is negative, it subtracts that value from Entity.fallDistance.
      Mappings:
      Namespace Name Mixin selector
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      official a Lbzm;a(DZLeeb;Ljb;)V
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official p Lcao;p()Layy;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lcam;e(Lbyb;)Layy;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official f_ Lcam;f_()Layy;
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      official fk Lcam;fk()F
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
      official a Lcao;a(Laub;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcam;e_()V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official g Lbzm;g()V
    • canPickUpLoot

      public boolean canPickUpLoot()
      Overrides:
      canPickUpLoot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canPickUpLoot Lnet/minecraft/entity/LivingEntity;canPickUpLoot()Z
      intermediary method_5936 Lnet/minecraft/class_1309;method_5936()Z
      official fU Lcam;fU()Z
    • isHoldingItem

      public boolean isHoldingItem()
      Mappings:
      Namespace Name Mixin selector
      named isHoldingItem Lnet/minecraft/entity/passive/AllayEntity;isHoldingItem()Z
      intermediary method_43396 Lnet/minecraft/class_7298;method_43396()Z
      official m Lcno;m()Z
    • canDispenserEquipSlot

      protected boolean canDispenserEquipSlot(EquipmentSlot slot)
      Overrides:
      canDispenserEquipSlot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canDispenserEquipSlot Lnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_63626 Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Z
      official f Lcam;f(Lbzw;)Z
    • isItemPickupCoolingDown

      private boolean isItemPickupCoolingDown()
      Mappings:
      Namespace Name Mixin selector
      named isItemPickupCoolingDown Lnet/minecraft/entity/passive/AllayEntity;isItemPickupCoolingDown()Z
      intermediary method_42654 Lnet/minecraft/class_7298;method_42654()Z
      official gK Lcno;gK()Z
    • interactMob

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      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 Lcao;b(Lcut;Lbxi;)Lbxj;
    • updateJukeboxPos

      public void updateJukeboxPos(BlockPos jukeboxPos, boolean playing)
      Mappings:
      Namespace Name Mixin selector
      named updateJukeboxPos Lnet/minecraft/entity/passive/AllayEntity;updateJukeboxPos(Lnet/minecraft/util/math/BlockPos;Z)V
      intermediary method_44358 Lnet/minecraft/class_7298;method_44358(Lnet/minecraft/class_2338;Z)V
      official b Lcno;b(Ljb;Z)V
    • getInventory

      public SimpleInventory getInventory()
      Specified by:
      getInventory in interface InventoryOwner
      Mappings:
      Namespace Name Mixin selector
      named getInventory Lnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/SimpleInventory;
      intermediary method_35199 Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1277;
      official n Lcud;n()Lbxr;
    • getItemPickUpRangeExpander

      protected Vec3i getItemPickUpRangeExpander()
      Overrides:
      getItemPickUpRangeExpander in class MobEntity
      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 ac Lcao;ac()Lkg;
    • canGather

      public boolean canGather(ServerWorld world, ItemStack stack)
      Overrides:
      canGather in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canGather Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_20820 Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
      official c Lcao;c(Laub;Ldcv;)Z
    • areItemsEqual

      private boolean areItemsEqual(ItemStack stack, ItemStack stack2)
      Mappings:
      Namespace Name Mixin selector
      named areItemsEqual Lnet/minecraft/entity/passive/AllayEntity;areItemsEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_45340 Lnet/minecraft/class_7298;method_45340(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official c Lcno;c(Ldcv;Ldcv;)Z
    • areDifferentPotions

      private boolean areDifferentPotions(ItemStack stack, ItemStack stack2)
      Mappings:
      Namespace Name Mixin selector
      named areDifferentPotions Lnet/minecraft/entity/passive/AllayEntity;areDifferentPotions(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_45341 Lnet/minecraft/class_7298;method_45341(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official d Lcno;d(Ldcv;Ldcv;)Z
    • loot

      protected void loot(ServerWorld world, ItemEntity itemEntity)
      Overrides:
      loot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
      official a Lcao;a(Laub;Lcqz;)V
    • sendAiDebugData

      protected void sendAiDebugData()
      Overrides:
      sendAiDebugData in class MobEntity
      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 ah Lcao;ah()V
    • isFlappingWings

      public boolean isFlappingWings()
      Returns whether the entity is flapping their wings.

      Entities flapping their wings will call Entity.addFlapEffects() inside Entity.addAirTravelEffects().

      Overrides:
      isFlappingWings in class Entity
      Returns:
      whether the entity is flapping their wings
      Mappings:
      Namespace Name Mixin selector
      named isFlappingWings Lnet/minecraft/entity/Entity;isFlappingWings()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      official bd Lbzm;bd()Z
    • updateEventHandler

      public void updateEventHandler(BiConsumer<EntityGameEventHandler<?>,ServerWorld> callback)
      Called when the entity is loaded to register game event handlers.

      Entities that listen to game events should first create an instance of EntityGameEventHandler in the entity's constructor, and override this to call callback. For example:

      
       if (this.world instanceof ServerWorld serverWorld) {
         callback.accept(this.handler, serverWorld);
       }
       
      Overrides:
      updateEventHandler in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updateEventHandler Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
      intermediary method_42147 Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
      official a Lbzm;a(Ljava/util/function/BiConsumer;)V
    • isDancing

      public boolean isDancing()
      Mappings:
      Namespace Name Mixin selector
      named isDancing Lnet/minecraft/entity/passive/AllayEntity;isDancing()Z
      intermediary method_44359 Lnet/minecraft/class_7298;method_44359()Z
      official t Lcno;t()Z
    • setDancing

      public void setDancing(boolean dancing)
      Mappings:
      Namespace Name Mixin selector
      named setDancing Lnet/minecraft/entity/passive/AllayEntity;setDancing(Z)V
      intermediary method_44367 Lnet/minecraft/class_7298;method_44367(Z)V
      official x Lcno;x(Z)V
    • shouldStopDancing

      private boolean shouldStopDancing()
      Mappings:
      Namespace Name Mixin selector
      named shouldStopDancing Lnet/minecraft/entity/passive/AllayEntity;shouldStopDancing()Z
      intermediary method_44361 Lnet/minecraft/class_7298;method_44361()Z
      official gL Lcno;gL()Z
    • getItemHoldAnimationTicks

      public float getItemHoldAnimationTicks(float tickProgress)
      Mappings:
      Namespace Name Mixin selector
      named getItemHoldAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;getItemHoldAnimationTicks(F)F
      intermediary method_43397 Lnet/minecraft/class_7298;method_43397(F)F
      official J Lcno;J(F)F
    • isSpinning

      public boolean isSpinning()
      Mappings:
      Namespace Name Mixin selector
      named isSpinning Lnet/minecraft/entity/passive/AllayEntity;isSpinning()Z
      intermediary method_44360 Lnet/minecraft/class_7298;method_44360()Z
      official gH Lcno;gH()Z
    • getSpinningAnimationTicks

      public float getSpinningAnimationTicks(float tickProgress)
      Mappings:
      Namespace Name Mixin selector
      named getSpinningAnimationTicks Lnet/minecraft/entity/passive/AllayEntity;getSpinningAnimationTicks(F)F
      intermediary method_44368 Lnet/minecraft/class_7298;method_44368(F)F
      official K Lcno;K(F)F
    • areItemsDifferent

      public boolean areItemsDifferent(ItemStack stack, ItemStack stack2)
      Overrides:
      areItemsDifferent in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named areItemsDifferent Lnet/minecraft/entity/LivingEntity;areItemsDifferent(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_45324 Lnet/minecraft/class_1309;method_45324(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official a Lcam;a(Ldcv;Ldcv;)Z
    • dropInventory

      protected void dropInventory(ServerWorld world)
      Overrides:
      dropInventory in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_16078 Lnet/minecraft/class_1309;method_16078(Lnet/minecraft/class_3218;)V
      official f Lcam;f(Laub;)V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      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 Lcao;h(D)Z
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • shouldFollowLeash

      protected boolean shouldFollowLeash()
      Overrides:
      shouldFollowLeash in class PathAwareEntity
      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 gF Lcau;gF()Z
    • tickDuplicationCooldown

      private void tickDuplicationCooldown()
      Mappings:
      Namespace Name Mixin selector
      named tickDuplicationCooldown Lnet/minecraft/entity/passive/AllayEntity;tickDuplicationCooldown()V
      intermediary method_44362 Lnet/minecraft/class_7298;method_44362()V
      official gM Lcno;gM()V
    • setDuplicationCooldown

      private void setDuplicationCooldown(long duplicationCooldown)
      Mappings:
      Namespace Name Mixin selector
      named setDuplicationCooldown Lnet/minecraft/entity/passive/AllayEntity;setDuplicationCooldown(J)V
      intermediary method_67660 Lnet/minecraft/class_7298;method_67660(J)V
      official a Lcno;a(J)V
    • duplicate

      private void duplicate()
      Mappings:
      Namespace Name Mixin selector
      named duplicate Lnet/minecraft/entity/passive/AllayEntity;duplicate()V
      intermediary method_44363 Lnet/minecraft/class_7298;method_44363()V
      official gN Lcno;gN()V
    • startDuplicationCooldown

      private void startDuplicationCooldown()
      Mappings:
      Namespace Name Mixin selector
      named startDuplicationCooldown Lnet/minecraft/entity/passive/AllayEntity;startDuplicationCooldown()V
      intermediary method_44364 Lnet/minecraft/class_7298;method_44364()V
      official gO Lcno;gO()V
    • canDuplicate

      private boolean canDuplicate()
      Mappings:
      Namespace Name Mixin selector
      named canDuplicate Lnet/minecraft/entity/passive/AllayEntity;canDuplicate()Z
      intermediary method_44365 Lnet/minecraft/class_7298;method_44365()Z
      official gP Lcno;gP()Z
    • decrementStackUnlessInCreative

      private void decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named decrementStackUnlessInCreative Lnet/minecraft/entity/passive/AllayEntity;decrementStackUnlessInCreative(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary method_44357 Lnet/minecraft/class_7298;method_44357(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
      official a Lcno;a(Lcut;Ldcv;)V
    • getLeashOffset

      public Vec3d getLeashOffset()
      Specified by:
      getLeashOffset in interface Leashable
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Leashable;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_9817;method_29919()Lnet/minecraft/class_243;
      official F Lcak;F()Lfis;
    • 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 MobEntity
      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 Lbzm;b(B)V
    • addHeartParticle

      private void addHeartParticle()
      Mappings:
      Namespace Name Mixin selector
      named addHeartParticle Lnet/minecraft/entity/passive/AllayEntity;addHeartParticle()V
      intermediary method_44608 Lnet/minecraft/class_7298;method_44608()V
      official gQ Lcno;gQ()V
    • getVibrationListenerData

      public Vibrations.ListenerData getVibrationListenerData()
      Specified by:
      getVibrationListenerData in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      named getVibrationListenerData Lnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;
      intermediary method_51298 Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
      official gI Lejk;gI()Lejk$a;
    • getVibrationCallback

      public Vibrations.Callback getVibrationCallback()
      Specified by:
      getVibrationCallback in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      named getVibrationCallback Lnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;
      intermediary method_51299 Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;
      official gJ Lejk;gJ()Lejk$d;