Class DrownedEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, Nameable, EntityLike

public class DrownedEntity extends ZombieEntity implements RangedAttackMob
Mappings:
Namespace Name
named net/minecraft/entity/mob/DrownedEntity
intermediary net/minecraft/class_1551
official cmk
  • Field Details

    • field_30460

      public static final float field_30460
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30460 Lnet/minecraft/entity/mob/DrownedEntity;field_30460:F
      intermediary field_30460 Lnet/minecraft/class_1551;field_30460:F
      official a Lcmk;a:F
    • targetingUnderwater

      boolean targetingUnderwater
      Mappings:
      Namespace Name Mixin selector
      named targetingUnderwater Lnet/minecraft/entity/mob/DrownedEntity;targetingUnderwater:Z
      intermediary field_7233 Lnet/minecraft/class_1551;field_7233:Z
      official cc Lcmk;cc:Z
    • waterNavigation

      protected final SwimNavigation waterNavigation
      Mappings:
      Namespace Name Mixin selector
      named waterNavigation Lnet/minecraft/entity/mob/DrownedEntity;waterNavigation:Lnet/minecraft/entity/ai/pathing/SwimNavigation;
      intermediary field_7234 Lnet/minecraft/class_1551;field_7234:Lnet/minecraft/class_1412;
      official b Lcmk;b:Lcft;
    • landNavigation

      protected final MobNavigation landNavigation
      Mappings:
      Namespace Name Mixin selector
      named landNavigation Lnet/minecraft/entity/mob/DrownedEntity;landNavigation:Lnet/minecraft/entity/ai/pathing/MobNavigation;
      intermediary field_7232 Lnet/minecraft/class_1551;field_7232:Lnet/minecraft/class_1409;
      official c Lcmk;c:Lcfq;
  • Constructor Details

    • DrownedEntity

      public DrownedEntity(EntityType<? extends DrownedEntity> 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

    • createDrownedAttributes

      public static DefaultAttributeContainer.Builder createDrownedAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createDrownedAttributes Lnet/minecraft/entity/mob/DrownedEntity;createDrownedAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_55746 Lnet/minecraft/class_1551;method_55746()Lnet/minecraft/class_5132$class_5133;
      official m Lcmk;m()Lbxm$a;
    • initCustomGoals

      protected void initCustomGoals()
      Overrides:
      initCustomGoals in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named initCustomGoals Lnet/minecraft/entity/mob/ZombieEntity;initCustomGoals()V
      intermediary method_7208 Lnet/minecraft/class_1642;method_7208()V
      official p Lcnp;p()V
    • initialize

      public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • canSpawn

      public static boolean canSpawn(EntityType<DrownedEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/mob/DrownedEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_20673 Lnet/minecraft/class_1551;method_20673(Lnet/minecraft/class_1299;Lnet/minecraft/class_5425;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official a Lcmk;a(Lbvq;Ldhy;Lbvp;Ljh;Lbam;)Z
    • isValidSpawnDepth

      private static boolean isValidSpawnDepth(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named isValidSpawnDepth Lnet/minecraft/entity/mob/DrownedEntity;isValidSpawnDepth(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_20672 Lnet/minecraft/class_1551;method_20672(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Z
      official a Lcmk;a(Ldhi;Ljh;)Z
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official u Lbwh;u()Laxe;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lbwf;e(Lbtz;)Laxe;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official o_ Lbwf;o_()Laxe;
    • getStepSound

      protected SoundEvent getStepSound()
      Overrides:
      getStepSound in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getStepSound Lnet/minecraft/entity/mob/ZombieEntity;getStepSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_7207 Lnet/minecraft/class_1642;method_7207()Lnet/minecraft/class_3414;
      official t Lcnp;t()Laxe;
    • getSwimSound

      protected SoundEvent getSwimSound()
      Overrides:
      getSwimSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getSwimSound Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5737 Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
      official aV Lbvj;aV()Laxe;
    • canSpawnAsReinforcementInFluid

      protected boolean canSpawnAsReinforcementInFluid()
      Overrides:
      canSpawnAsReinforcementInFluid in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named canSpawnAsReinforcementInFluid Lnet/minecraft/entity/mob/ZombieEntity;canSpawnAsReinforcementInFluid()Z
      intermediary method_64462 Lnet/minecraft/class_1642;method_64462()Z
      official x Lcnp;x()Z
    • getSkull

      protected ItemStack getSkull()
      Returns the item stack this entity will drop when killed by a charged creeper.
      Overrides:
      getSkull in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getSkull Lnet/minecraft/entity/mob/ZombieEntity;getSkull()Lnet/minecraft/item/ItemStack;
      intermediary method_7215 Lnet/minecraft/class_1642;method_7215()Lnet/minecraft/class_1799;
      official go Lcnp;go()Lcxo;
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbwh;a(Lbam;Lbtg;)V
    • prefersNewEquipment

      protected boolean prefersNewEquipment(ItemStack newStack, ItemStack oldStack, EquipmentSlot slot)
      Overrides:
      prefersNewEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named prefersNewEquipment Lnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_5955 Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Z
      official a Lbwh;a(Lcxo;Lcxo;Lbvr;)Z
    • canConvertInWater

      protected boolean canConvertInWater()
      Overrides:
      canConvertInWater in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named canConvertInWater Lnet/minecraft/entity/mob/ZombieEntity;canConvertInWater()Z
      intermediary method_7209 Lnet/minecraft/class_1642;method_7209()Z
      official gp Lcnp;gp()Z
    • 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
    • canDrownedAttackTarget

      public boolean canDrownedAttackTarget(@Nullable @Nullable LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named canDrownedAttackTarget Lnet/minecraft/entity/mob/DrownedEntity;canDrownedAttackTarget(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_7012 Lnet/minecraft/class_1551;method_7012(Lnet/minecraft/class_1309;)Z
      official j Lcmk;j(Lbwf;)Z
    • 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
    • isTargetingUnderwater

      boolean isTargetingUnderwater()
      Mappings:
      Namespace Name Mixin selector
      named isTargetingUnderwater Lnet/minecraft/entity/mob/DrownedEntity;isTargetingUnderwater()Z
      intermediary method_7018 Lnet/minecraft/class_1551;method_7018()Z
      official gx Lcmk;gx()Z
    • travel

      public void travel(Vec3d movementInput)
      Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.

      See vanilla examples of custom horse vehicle and flying entities.

      Overrides:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      official a_ Lbwf;a_(Lfbx;)V
    • updateSwimming

      public void updateSwimming()
      Overrides:
      updateSwimming in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updateSwimming Lnet/minecraft/entity/Entity;updateSwimming()V
      intermediary method_5790 Lnet/minecraft/class_1297;method_5790()V
      official bp Lbvj;bp()V
    • isInSwimmingPose

      public boolean isInSwimmingPose()
      Returns whether the entity is in swimming pose.

      This includes crawling entities and entities using elytra that aren't fall-flying. Players start crawling if they would otherwise collide with blocks (for example, when the player is in a 1 block tall tunnel).

      Overrides:
      isInSwimmingPose in class LivingEntity
      Returns:
      whether the entity is in swimming pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isInSwimmingPose Lnet/minecraft/entity/Entity;isInSwimmingPose()Z
      intermediary method_20232 Lnet/minecraft/class_1297;method_20232()Z
      official cl Lbvj;cl()Z
    • hasFinishedCurrentPath

      protected boolean hasFinishedCurrentPath()
      Mappings:
      Namespace Name Mixin selector
      named hasFinishedCurrentPath Lnet/minecraft/entity/mob/DrownedEntity;hasFinishedCurrentPath()Z
      intermediary method_7016 Lnet/minecraft/class_1551;method_7016()Z
      official gq Lcmk;gq()Z
    • shootAt

      public void shootAt(LivingEntity target, float pullProgress)
      Specified by:
      shootAt in interface RangedAttackMob
      Mappings:
      Namespace Name Mixin selector
      named shootAt Lnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)V
      intermediary method_7105 Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V
      official a Lcna;a(Lbwf;F)V
    • setTargetingUnderwater

      public void setTargetingUnderwater(boolean targetingUnderwater)
      Mappings:
      Namespace Name Mixin selector
      named setTargetingUnderwater Lnet/minecraft/entity/mob/DrownedEntity;setTargetingUnderwater(Z)V
      intermediary method_7013 Lnet/minecraft/class_1551;method_7013(Z)V
      official x Lcmk;x(Z)V