Class AbstractNautilusEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, JumpingMount, Leashable, Mount, Tameable, Targeter, ScoreHolder, HeldItemContext, Nameable, DebugTrackable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint
Direct Known Subclasses:
NautilusEntity, ZombieNautilusEntity

public abstract class AbstractNautilusEntity extends TameableEntity implements JumpingMount
Mappings:
Namespace Name
named net/minecraft/entity/passive/AbstractNautilusEntity
intermediary net/minecraft/class_12116
official cwd
  • Field Details

    • field_63349

      public static final int field_63349
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63349 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63349:I
      intermediary field_63349 Lnet/minecraft/class_12116;field_63349:I
      official cz Lcwd;cz:I
    • field_63328

      public static final int field_63328
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63328 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63328:I
      intermediary field_63328 Lnet/minecraft/class_12116;field_63328:I
      official cA Lcwd;cA:I
    • field_63329

      public static final int field_63329
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63329 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63329:I
      intermediary field_63329 Lnet/minecraft/class_12116;field_63329:I
      official cB Lcwd;cB:I
    • field_63331

      private static final int field_63331
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63331 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63331:I
      intermediary field_63331 Lnet/minecraft/class_12116;field_63331:I
      official cD Lcwd;cD:I
    • field_63332

      private static final int field_63332
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63332 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63332:I
      intermediary field_63332 Lnet/minecraft/class_12116;field_63332:I
      official cE Lcwd;cE:I
    • field_63333

      private static final int field_63333
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63333 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63333:I
      intermediary field_63333 Lnet/minecraft/class_12116;field_63333:I
      official cF Lcwd;cF:I
    • field_63334

      private static final double field_63334
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63334 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63334:D
      intermediary field_63334 Lnet/minecraft/class_12116;field_63334:D
      official cG Lcwd;cG:D
    • field_63335

      private static final float field_63335
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63335 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63335:F
      intermediary field_63335 Lnet/minecraft/class_12116;field_63335:F
      official cH Lcwd;cH:F
    • field_63336

      private static final float field_63336
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63336 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63336:F
      intermediary field_63336 Lnet/minecraft/class_12116;field_63336:F
      official cI Lcwd;cI:F
    • field_63807

      private static final float field_63807
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63807 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63807:F
      intermediary field_63807 Lnet/minecraft/class_12116;field_63807:F
      official cJ Lcwd;cJ:F
    • DASHING

      private static final TrackedData<Boolean> DASHING
      Mappings:
      Namespace Name Mixin selector
      named DASHING Lnet/minecraft/entity/passive/AbstractNautilusEntity;DASHING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_63337 Lnet/minecraft/class_12116;field_63337:Lnet/minecraft/class_2940;
      official cK Lcwd;cK:Lamb;
    • field_63338

      private static final int field_63338
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63338 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63338:I
      intermediary field_63338 Lnet/minecraft/class_12116;field_63338:I
      official cL Lcwd;cL:I
    • field_63339

      private static final int field_63339
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63339 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63339:I
      intermediary field_63339 Lnet/minecraft/class_12116;field_63339:I
      official cM Lcwd;cM:I
    • field_63340

      private static final float field_63340
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63340 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63340:F
      intermediary field_63340 Lnet/minecraft/class_12116;field_63340:F
      official cN Lcwd;cN:F
    • field_63341

      private static final float field_63341
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63341 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63341:F
      intermediary field_63341 Lnet/minecraft/class_12116;field_63341:F
      official cO Lcwd;cO:F
    • field_63343

      private static final double field_63343
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63343 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63343:D
      intermediary field_63343 Lnet/minecraft/class_12116;field_63343:D
      official cQ Lcwd;cQ:D
    • field_63344

      private static final double field_63344
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63344 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63344:D
      intermediary field_63344 Lnet/minecraft/class_12116;field_63344:D
      official cR Lcwd;cR:D
    • field_63345

      private static final double field_63345
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63345 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63345:D
      intermediary field_63345 Lnet/minecraft/class_12116;field_63345:D
      official cU Lcwd;cU:D
    • field_63346

      private static final double field_63346
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63346 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63346:D
      intermediary field_63346 Lnet/minecraft/class_12116;field_63346:D
      official cV Lcwd;cV:D
    • field_63347

      private static final float field_63347
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63347 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63347:F
      intermediary field_63347 Lnet/minecraft/class_12116;field_63347:F
      official cW Lcwd;cW:F
    • field_63348

      private static final float field_63348
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63348 Lnet/minecraft/entity/passive/AbstractNautilusEntity;field_63348:F
      intermediary field_63348 Lnet/minecraft/class_12116;field_63348:F
      official cX Lcwd;cX:F
    • jumpCooldown

      private int jumpCooldown
      Mappings:
      Namespace Name Mixin selector
      named jumpCooldown Lnet/minecraft/entity/passive/AbstractNautilusEntity;jumpCooldown:I
      intermediary field_63342 Lnet/minecraft/class_12116;field_63342:I
      official cP Lcwd;cP:I
    • dashStrength

      protected float dashStrength
      Mappings:
      Namespace Name Mixin selector
      named dashStrength Lnet/minecraft/entity/passive/AbstractNautilusEntity;dashStrength:F
      intermediary field_63330 Lnet/minecraft/class_12116;field_63330:F
      official cC Lcwd;cC:F
  • Constructor Details

    • AbstractNautilusEntity

      protected AbstractNautilusEntity(EntityType<? extends AbstractNautilusEntity> 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> Lcgd;<init>(Lcgm;Ldun;)V
  • Method Details

    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Specified by:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official i Lcta;i(Ldkf;)Z
    • eat

      protected void eat(PlayerEntity player, Hand hand, ItemStack stack)
      Overrides:
      eat in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named eat Lnet/minecraft/entity/mob/MobEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)V
      intermediary method_6475 Lnet/minecraft/class_1308;method_6475(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)V
      official a Lchg;a(Ldcb;Lccw;Ldkf;)V
    • createNautilusAttributes

      public static DefaultAttributeContainer.Builder createNautilusAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createNautilusAttributes Lnet/minecraft/entity/passive/AbstractNautilusEntity;createNautilusAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_75156 Lnet/minecraft/class_12116;method_75156()Lnet/minecraft/class_5132$class_5133;
      official gY Lcwd;gY()Lcij$a;
    • isPushedByFluids

      public boolean isPushedByFluids()
      Returns whether the entity is pushed by fluids.
      Overrides:
      isPushedByFluids in class Entity
      Returns:
      whether the entity is pushed by fluids
      API Note:
      Aquatic mobs should override this to return false. Players are not pushed by fluids if they can fly (e.g. because of game mode).
      Mappings:
      Namespace Name Mixin selector
      named isPushedByFluids Lnet/minecraft/entity/Entity;isPushedByFluids()Z
      intermediary method_5675 Lnet/minecraft/class_1297;method_5675()Z
      official cY Lcgd;cY()Z
    • 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 Lchg;b(Ldun;)Lcqt;
    • getPathfindingFavor

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

      public static boolean canSpawn(EntityType<? extends AbstractNautilusEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/passive/AbstractNautilusEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_75154 Lnet/minecraft/class_12116;method_75154(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcwd;c(Lcgm;Lduo;Lcgl;Liz;Lbgq;)Z
    • canSpawn

      public boolean canSpawn(WorldView world)
      Overrides:
      canSpawn in class MobEntity
      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 Lchg;a(Lduq;)Z
    • getMaxAir

      public int getMaxAir()
      Returns the maximum amount of air the entity can hold, in ticks.

      Most entities have the max air of 300 ticks, or 15 seconds. DolphinEntity has 4800 ticks or 4 minutes; AxolotlEntity has 6000 ticks or 5 minutes. Note that this does not include enchantments.

      Overrides:
      getMaxAir in class Entity
      Returns:
      the maximum amount of air the entity can hold, in ticks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getMaxAir Lnet/minecraft/entity/Entity;getMaxAir()I
      intermediary method_5748 Lnet/minecraft/class_1297;method_5748()I
      official cG Lcgd;cG()I
    • tickAir

      protected void tickAir(ServerWorld world, int air)
      Mappings:
      Namespace Name Mixin selector
      named tickAir Lnet/minecraft/entity/passive/AbstractNautilusEntity;tickAir(Lnet/minecraft/server/world/ServerWorld;I)V
      intermediary method_75153 Lnet/minecraft/class_12116;method_75153(Lnet/minecraft/class_3218;I)V
      official a Lcwd;a(Laxl;I)V
    • baseTick

      public void baseTick()
      Overrides:
      baseTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named baseTick Lnet/minecraft/entity/Entity;baseTick()V
      intermediary method_5670 Lnet/minecraft/class_1297;method_5670()V
      official aI Lcgd;aI()V
    • 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 e Lche;e(Lcgn;)Z
    • canAddPassenger

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

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

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

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

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

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

      Overrides:
      getControllingPassenger in class MobEntity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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 di Lcgd;di()Lche;
    • getControlledMovementInput

      protected Vec3d getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput)
      Overrides:
      getControlledMovementInput in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getControlledMovementInput Lnet/minecraft/entity/LivingEntity;getControlledMovementInput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_49482 Lnet/minecraft/class_1309;method_49482(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      official b Lche;b(Ldcb;Lfrd;)Lfrd;
    • getControlledRotation

      protected Vec2f getControlledRotation(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named getControlledRotation Lnet/minecraft/entity/passive/AbstractNautilusEntity;getControlledRotation(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec2f;
      intermediary method_75165 Lnet/minecraft/class_12116;method_75165(Lnet/minecraft/class_1309;)Lnet/minecraft/class_241;
      official k Lcwd;k(Lche;)Lfrc;
    • tickControlled

      protected void tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput)
      Overrides:
      tickControlled in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickControlled Lnet/minecraft/entity/LivingEntity;tickControlled(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_49481 Lnet/minecraft/class_1309;method_49481(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)V
      official a Lche;a(Ldcb;Lfrd;)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 m Lche;m(Lfrd;)V
    • getSaddledSpeed

      protected float getSaddledSpeed(PlayerEntity controllingPlayer)
      Overrides:
      getSaddledSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSaddledSpeed Lnet/minecraft/entity/LivingEntity;getSaddledSpeed(Lnet/minecraft/entity/player/PlayerEntity;)F
      intermediary method_49485 Lnet/minecraft/class_1309;method_49485(Lnet/minecraft/class_1657;)F
      official f Lche;f(Ldcb;)F
    • putPlayerOnBack

      protected void putPlayerOnBack(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named putPlayerOnBack Lnet/minecraft/entity/passive/AbstractNautilusEntity;putPlayerOnBack(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75163 Lnet/minecraft/class_12116;method_75163(Lnet/minecraft/class_1657;)V
      official i Lcwd;i(Ldcb;)V
    • getMaxTargetRange

      private int getMaxTargetRange()
      Mappings:
      Namespace Name Mixin selector
      named getMaxTargetRange Lnet/minecraft/entity/passive/AbstractNautilusEntity;getMaxTargetRange()I
      intermediary method_75161 Lnet/minecraft/class_12116;method_75161()I
      official hd Lcwd;hd()I
    • tickPositionTarget

      protected void tickPositionTarget()
      Mappings:
      Namespace Name Mixin selector
      named tickPositionTarget Lnet/minecraft/entity/passive/AbstractNautilusEntity;tickPositionTarget()V
      intermediary method_75157 Lnet/minecraft/class_12116;method_75157()V
      official gZ Lcwd;gZ()V
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class AnimalEntity
      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 Lchg;a(Laxl;)V
    • tickController

      private void tickController(World world)
      Mappings:
      Namespace Name Mixin selector
      named tickController Lnet/minecraft/entity/passive/AbstractNautilusEntity;tickController(Lnet/minecraft/world/World;)V
      intermediary method_75155 Lnet/minecraft/class_12116;method_75155(Lnet/minecraft/class_1937;)V
      official c Lcwd;c(Ldun;)V
    • spawnParticles

      private void spawnParticles()
      Mappings:
      Namespace Name Mixin selector
      named spawnParticles Lnet/minecraft/entity/passive/AbstractNautilusEntity;spawnParticles()V
      intermediary method_75162 Lnet/minecraft/class_12116;method_75162()V
      official he Lcwd;he()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 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 Lcgd;g()V
    • canJump

      public boolean canJump()
      Specified by:
      canJump in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named canJump Lnet/minecraft/entity/JumpingMount;canJump()Z
      intermediary method_6153 Lnet/minecraft/class_1316;method_6153()Z
      official a Lcho;a()Z
    • setJumpStrength

      public void setJumpStrength(int strength)
      Specified by:
      setJumpStrength in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named setJumpStrength Lnet/minecraft/entity/JumpingMount;setJumpStrength(I)V
      intermediary method_6154 Lnet/minecraft/class_1316;method_6154(I)V
      official b Lcho;b(I)V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class TameableEntity
      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 Lcgd;a(Lamf$a;)V
    • isDashing

      public boolean isDashing()
      Mappings:
      Namespace Name Mixin selector
      named isDashing Lnet/minecraft/entity/passive/AbstractNautilusEntity;isDashing()Z
      intermediary method_75158 Lnet/minecraft/class_12116;method_75158()Z
      official ha Lcwd;ha()Z
    • setDashing

      public void setDashing(boolean dashing)
      Mappings:
      Namespace Name Mixin selector
      named setDashing Lnet/minecraft/entity/passive/AbstractNautilusEntity;setDashing(Z)V
      intermediary method_75151 Lnet/minecraft/class_12116;method_75151(Z)V
      official A Lcwd;A(Z)V
    • dash

      protected void dash(float strength, PlayerEntity controller)
      Mappings:
      Namespace Name Mixin selector
      named dash Lnet/minecraft/entity/passive/AbstractNautilusEntity;dash(FLnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75152 Lnet/minecraft/class_12116;method_75152(FLnet/minecraft/class_1657;)V
      official a Lcwd;a(FLdcb;)V
    • startJumping

      public void startJumping(int height)
      Specified by:
      startJumping in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named startJumping Lnet/minecraft/entity/JumpingMount;startJumping(I)V
      intermediary method_6155 Lnet/minecraft/class_1316;method_6155(I)V
      official c Lcho;c(I)V
    • getJumpCooldown

      public int getJumpCooldown()
      Specified by:
      getJumpCooldown in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named getJumpCooldown Lnet/minecraft/entity/JumpingMount;getJumpCooldown()I
      intermediary method_45327 Lnet/minecraft/class_1316;method_45327()I
      official c Lcho;c()I
    • onTrackedDataSet

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

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

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lame;a(Lamb;)V
    • stopJumping

      public void stopJumping()
      Specified by:
      stopJumping in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named stopJumping Lnet/minecraft/entity/JumpingMount;stopJumping()V
      intermediary method_6156 Lnet/minecraft/class_1316;method_6156()V
      official b Lcho;b()V
    • 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 Lcgd;b(Liz;Lemh;)V
    • getDashSound

      @Nullable protected @Nullable SoundEvent getDashSound()
      Mappings:
      Namespace Name Mixin selector
      named getDashSound Lnet/minecraft/entity/passive/AbstractNautilusEntity;getDashSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_75159 Lnet/minecraft/class_12116;method_75159()Lnet/minecraft/class_3414;
      official hb Lcwd;hb()Lbdd;
    • getDashReadySound

      @Nullable protected @Nullable SoundEvent getDashReadySound()
      Mappings:
      Namespace Name Mixin selector
      named getDashReadySound Lnet/minecraft/entity/passive/AbstractNautilusEntity;getDashReadySound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_75160 Lnet/minecraft/class_12116;method_75160()Lnet/minecraft/class_3414;
      official hc Lcwd;hc()Lbdd;
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      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 Lchg;b(Ldcb;Lccw;)Lccx;
    • tryTame

      private void tryTame(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named tryTame Lnet/minecraft/entity/passive/AbstractNautilusEntity;tryTame(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75164 Lnet/minecraft/class_12116;method_75164(Lnet/minecraft/class_1657;)V
      official j Lcwd;j(Ldcb;)V
    • cannotDespawn

      public boolean cannotDespawn()
      Overrides:
      cannotDespawn in class MobEntity
      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 af Lchg;af()Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class AnimalEntity
      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 i Lchg;i(D)Z
    • 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 Lcgd;a(Laxl;Lceq;F)Z
    • canHaveStatusEffect

      public boolean canHaveStatusEffect(StatusEffectInstance effect)
      Overrides:
      canHaveStatusEffect in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canHaveStatusEffect Lnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
      intermediary method_6049 Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Z
      official b Lche;b(Lcff;)Z
    • initialize

      public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      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 Lchg;a(Ldvf;Lccv;Lcgl;Lchw;)Lchw;