Class WaterCreatureEntity

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

public abstract class WaterCreatureEntity extends PathAwareEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/WaterCreatureEntity
intermediary net/minecraft/class_1480
official cgi
  • Constructor Details

    • WaterCreatureEntity

      protected WaterCreatureEntity(EntityType<? extends WaterCreatureEntity> 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> Lbsv;<init>(Lbtb;Ldbz;)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 Lbts;a(Ldcc;)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 P Lbts;P()I
    • getXpToDrop

      public int getXpToDrop()
      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()I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110()I
      official ej Lbtq;ej()I
    • tickWaterBreathingAir

      protected void tickWaterBreathingAir(int air)
      Mappings:
      Namespace Name Mixin selector
      named tickWaterBreathingAir Lnet/minecraft/entity/mob/WaterCreatureEntity;tickWaterBreathingAir(I)V
      intermediary method_6673 Lnet/minecraft/class_1480;method_6673(I)V
      official b Lcgi;b(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 au Lbsv;au()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 cC Lbsv;cC()Z
    • canBeLeashedBy

      public boolean canBeLeashedBy(PlayerEntity player)
      Overrides:
      canBeLeashedBy in class MobEntity
      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 Lbts;a(Lcmy;)Z
    • canSpawn

      public static boolean canSpawn(EntityType<? extends WaterCreatureEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/mob/WaterCreatureEntity;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_38986 Lnet/minecraft/class_1480;method_38986(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcgi;c(Lbtb;Ldca;Lbtu;Liz;Lazh;)Z