Class WaterCreatureEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
DolphinEntity, FishEntity, SquidEntity

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

    • WaterCreatureEntity

      protected WaterCreatureEntity(EntityType<? extends WaterCreatureEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latf;<init>(Latj;Lbwp;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • canBreatheInWater

      public boolean canBreatheInWater()
      Overrides:
      canBreatheInWater in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official dr Latt;dr()Z
      intermediary method_6094 Lnet/minecraft/class_1309;method_6094()Z
      named canBreatheInWater Lnet/minecraft/entity/LivingEntity;canBreatheInWater()Z
    • getGroup

      public EntityGroup getGroup()
      Overrides:
      getGroup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ek Latt;ek()Laty;
      intermediary method_6046 Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;
      named getGroup Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
    • canSpawn

      public boolean canSpawn(WorldView world)
      Overrides:
      canSpawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latv;a(Lbws;)Z
      intermediary method_5957 Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
    • getMinAmbientSoundDelay

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official J Latv;J()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
    • getXpToDrop

      protected int getXpToDrop(PlayerEntity player)
      Called when this entity is killed and returns the amount of experience to drop.

      player may be null if shouldAlwaysDropXp() returns true.

      Overrides:
      getXpToDrop in class MobEntity
      Parameters:
      player - the attacking player
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Latt;d(Lbkd;)I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_1657;)I
      named getXpToDrop Lnet/minecraft/entity/LivingEntity;getXpToDrop(Lnet/minecraft/entity/player/PlayerEntity;)I
    • tickWaterBreathingAir

      protected void tickWaterBreathingAir(int air)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex;a(I)V
      intermediary method_6673 Lnet/minecraft/class_1480;method_6673(I)V
      named tickWaterBreathingAir Lnet/minecraft/entity/mob/WaterCreatureEntity;tickWaterBreathingAir(I)V
    • baseTick

      public void baseTick()
      Overrides:
      baseTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official ai Latf;ai()V
      intermediary method_5670 Lnet/minecraft/class_1297;method_5670()V
      named baseTick Lnet/minecraft/entity/Entity;baseTick()V
    • isPushedByFluids

      public boolean isPushedByFluids()
      Overrides:
      isPushedByFluids in class Entity
      Mappings:
      Namespace Name Mixin selector
      official ck Latf;ck()Z
      intermediary method_5675 Lnet/minecraft/class_1297;method_5675()Z
      named isPushedByFluids Lnet/minecraft/entity/Entity;isPushedByFluids()Z
    • canBeLeashedBy

      public boolean canBeLeashedBy(PlayerEntity player)
      Overrides:
      canBeLeashedBy in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latv;a(Lbkd;)Z
      intermediary method_5931 Lnet/minecraft/class_1308;method_5931(Lnet/minecraft/class_1657;)Z
      named canBeLeashedBy Lnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • canSpawnUnderground

      public static boolean canSpawnUnderground(EntityType<? extends LivingEntity> entityType, ServerWorldAccess serverWorldAccess, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex;a(Latj;Lbxd;Latx;Lgg;Ljava/util/Random;)Z
      intermediary method_35174 Lnet/minecraft/class_1480;method_35174(Lnet/minecraft/class_1299;Lnet/minecraft/class_5425;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named canSpawnUnderground Lnet/minecraft/entity/mob/WaterCreatureEntity;canSpawnUnderground(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • method_37360

      public static boolean method_37360(BlockPos blockPos, ServerWorldAccess serverWorldAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex;a(Lgg;Lbxd;)Z
      intermediary method_37360 Lnet/minecraft/class_1480;method_37360(Lnet/minecraft/class_2338;Lnet/minecraft/class_5425;)Z
      named method_37360 Lnet/minecraft/entity/mob/WaterCreatureEntity;method_37360(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/ServerWorldAccess;)Z
    • method_37359

      public static boolean method_37359(ServerWorldAccess serverWorldAccess, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex;a(Lbxd;Lgg;)Z
      intermediary method_37359 Lnet/minecraft/class_1480;method_37359(Lnet/minecraft/class_5425;Lnet/minecraft/class_2338;)Z
      named method_37359 Lnet/minecraft/entity/mob/WaterCreatureEntity;method_37359(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z