Class WaterCreatureEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, 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 cgg
  • 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> Lbsr;<init>(Lbsx;Ldcw;)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 Lbtp;a(Ldcz;)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 R Lbtp;R()I
    • getXpToDrop

      protected 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 eg Lbtn;eg()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 Lcgg;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 aw Lbsr;aw()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 Lbsr;cC()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 Lbtk;y()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 Lcgg;c(Lbsx;Ldcx;Lbtr;Ljd;Layw;)Z