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 chv
  • Constructor Details

    • WaterAnimalEntity

      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> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • 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 Lbwh;a(Ldhk;)Z
    • getMinAmbientSoundDelay

      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 Q Lbwh;Q()I
    • getXpToDrop

      public int getXpToDrop(ServerWorld world)
      Called when this entity is killed and returns the amount of experience to drop.
      Overrides:
      getXpToDrop in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getXpToDrop Lnet/minecraft/entity/LivingEntity;getXpToDrop(Lnet/minecraft/server/world/ServerWorld;)I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)I
      official e Lbwf;e(Lash;)I
    • tickBreathing

      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 Lchv;r(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 az Lbvj;az()V
    • 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 cJ Lbvj;cJ()Z
    • canBeLeashed

      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 Lbwd;y()Z
    • canSpawn

      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 Lchv;b(Lbvq;Ldhi;Lbvp;Ljh;Lbam;)Z