net.minecraft.entity.mob

public class DrownedEntity

extends ZombieEntity implements RangedAttackMob

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Monster, RangedAttackMob

net.minecraft.world.entity.monster.zombie.Drowned
net.minecraft.class_1551
net.minecraft.entity.mob.DrownedEntity

Field summary

Modifier and TypeField
public static final float
NAUTILUS_SHELL_CHANCE
field_30460
field_30460
private static final float
ZOMBIE_NAUTILUS_JOCKEY_CHANCE
field_63376
field_63376
private static final EntityDimensions
BABY_DIMENSIONS
field_1_1865
field_1_1865
private boolean
searchingForLand
field_7233
targetingUnderwater

Constructor summary

ModifierConstructor
public (EntityType<? extends DrownedEntity> type, World level)

Method summary

Modifier and TypeMethod
public static DefaultAttributeContainer$Builder
createAttributes()
method_55746()
createDrownedAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
protected void
addBehaviourGoals()
method_7208()
initCustomGoals()
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public static boolean
checkDrownedSpawnRules(EntityType<Drowned> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20673(class_1299<class_1551> arg0, class_5425 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<DrownedEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
private static boolean
isDeepEnoughToSpawn(LevelAccessor level, BlockPos pos)
method_20672(class_1936 arg0, class_2338 arg1)
isValidSpawnDepth(WorldAccess world, BlockPos pos)
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getStepSound()
method_7207()
getStepSound()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected boolean
canSpawnInLiquids()
method_64462()
canSpawnAsReinforcementInFluid()
protected void
populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
protected boolean
canReplaceCurrentItem(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
method_5955(class_1799 arg0, class_1799 arg1, class_1304 arg2)
prefersNewEquipment(ItemStack arg0, ItemStack arg1, EquipmentSlot arg2)
protected boolean
convertsInWater()
method_7209()
canConvertInWater()
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public boolean
okTarget(LivingEntity target)
method_7012(class_1309 arg0)
canDrownedAttackTarget(LivingEntity target)
public boolean
isPushedByFluid()
method_5675()
isPushedByFluids()
private boolean
wantsToSwim()
method_7018()
isTargetingUnderwater()
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76087(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInWater(Vec3d arg0, double arg1, boolean arg2, double arg3)
public void
updateSwimming()
method_5790()
updateSwimming()
public boolean
isVisuallySwimming()
method_20232()
isInSwimmingPose()
protected boolean
closeToNextPos()
method_7016()
hasFinishedCurrentPath()
public void
performRangedAttack(LivingEntity target, float power)
method_7105(class_1309 arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
public TagKey<Item>
getPreferredWeaponType()
method_65345()
getPreferredWeapons()
public void
setSearchingForLand(boolean searchingForLand)
method_7013(boolean arg0)
setTargetingUnderwater(boolean targetingUnderwater)
public void
rideTick()
method_5842()
tickRiding()
public boolean
wantsToPickUp(ServerLevel level, ItemStack itemStack)
method_20820(class_3218 arg0, class_1799 arg1)
canGather(ServerWorld arg0, ItemStack arg1)
private boolean
lambda$addBehaviourGoals$0(LivingEntity arg0, ServerLevel arg1)
method_64461(class_1309 arg0, class_3218 arg1)
method_64461(LivingEntity target, ServerWorld world)