Class WaterAnimalEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Targeter, ScoreHolder, Nameable, EntityLike
Direct Known Subclasses:
DolphinEntity, SquidEntity

public abstract class WaterAnimalEntity extends PassiveEntity
Mappings:
Namespace Name
named net/minecraft/entity/passive/WaterAnimalEntity
intermediary net/minecraft/class_9866
official cgy
  • Constructor Details Link icon

    • WaterAnimalEntity Link icon

      protected WaterAnimalEntity(EntityType<? extends WaterAnimalEntity> 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> Lbum;<init>(Lbut;Ldgj;)V
  • Method Details Link icon

    • canSpawn Link icon

      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 Lbvk;a(Ldgm;)Z
    • getMinAmbientSoundDelay Link icon

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class MobEntity
      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 T Lbvk;T()I
    • getExperienceToDrop Link icon

      public int getExperienceToDrop(ServerWorld world)
      Called when this entity is killed and returns the amount of experience to drop.
      Overrides:
      getExperienceToDrop in class MobEntity
      See Also:
      • invalid reference
        #dropXp
      • invalid reference
        #shouldAlwaysDropXp()
      • invalid reference
        #shouldDropXp()
      Mappings:
      Namespace Name Mixin selector
      named getExperienceToDrop Lnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)I
      official e Lbvi;e(Lard;)I
    • tickBreathing Link icon

      protected void tickBreathing(int air)
      Mappings:
      Namespace Name Mixin selector
      named tickBreathing Lnet/minecraft/entity/passive/WaterAnimalEntity;tickBreathing(I)V
      intermediary method_61456 Lnet/minecraft/class_9866;method_61456(I)V
      official r Lcgy;r(I)V
    • baseTick Link icon

      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 az Lbum;az()V
    • isPushedByFluids Link icon

      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 cJ Lbum;cJ()Z
    • canBeLeashed Link icon

      public boolean canBeLeashed()
      Specified by:
      canBeLeashed in interface Leashable
      Overrides:
      canBeLeashed in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canBeLeashed Lnet/minecraft/entity/Leashable;canBeLeashed()Z
      intermediary method_5931 Lnet/minecraft/class_9817;method_5931()Z
      official y Lbvg;y()Z
    • canSpawn Link icon

      public static boolean canSpawn(EntityType<? extends WaterAnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/passive/WaterAnimalEntity;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_61455 Lnet/minecraft/class_9866;method_61455(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official b Lcgy;b(Lbut;Ldgk;Lbus;Lji;Lazh;)Z