net.minecraft.entity.mob

public class DrownedEntity

extends ZombieEntity implements RangedAttackMob, Angerable

All mapped superinterfaces:

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

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
DIMENSIONS
private static final UniformIntProvider
PERSISTENT_ANGER_TIME
field_1_9880
ANGER_TIME_PROVIDER
private long
persistentAngerEndTime
field_1_9881
angerEndTime
private LazyEntityReference<LivingEntity>
persistentAngerTarget
field_1_9882
angryAt
private boolean
searchingForLand
field_7233
targetingUnderwater
private float
rangedAttackUncertainty
field_1_8159
shotDivergence

Constructor summary

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

Method summary

Modifier and TypeMethod
public static DefaultAttributeContainer$Builder
createAttributes()
method_55746()
createDrownedAttributes()
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
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)
private boolean
shouldBehaveNeutrally()
method_1_9621()
shouldStopPursuingTarget()
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, ServerLevel level)
method_64461(class_1309 arg0, class_3218 arg1)
canTarget(LivingEntity target, ServerWorld world)
public boolean
isPushedByFluid()
method_5675()
isPushedByFluids()
public 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()
private boolean
shouldDoRangedAttack()
method_1_7930()
canTargetWithTrident()
public void
performRangedAttack(LivingEntity target, float power)
method_7105(class_1309 arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
public float
rangedAttackUncertainty(Level level)
method_1_7455(class_1937 arg0)
getShotDivergence(World arg0)
public void
setRangedAttackUncertainty(float rangedAttackUncertainty)
method_1_7448(float arg0)
setShotDivergence(float shotDivergence)
public TagKey<Item>
getPreferredWeaponType()
method_65345()
getPreferredWeapons()
public void
setSearchingForLand(boolean searchingForLand)
method_7013(boolean arg0)
setTargetingUnderwater(boolean targetingUnderwater)
public boolean
isSearchingForLand()
method_1_4443()
isExplicitlyTargetingUnderwater()
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)
public void
setPersistentAngerEndTime(long endTime)
method_75132(long arg0)
setAngerEndTime(long arg0)
public long
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
public void
setPersistentAngerTarget(EntityReference<LivingEntity> persistentAngerTarget)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
public LazyEntityReference<LivingEntity>
getPersistentAngerTarget()
method_29508()
getAngryAt()
public void
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public boolean
isPreventingPlayerRest(ServerLevel level, Player player)
method_7076(class_3218 arg0, class_1657 arg1)
isAngryAt(ServerWorld arg0, PlayerEntity arg1)
private boolean
lambda$addBehaviourGoals$0()
method_1_9620()
method_1_9620()