net.minecraft.entity.ai.brain.task

public class StayAboveWaterTask<T extends MobEntity>

extends MultiTickTask<T>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.Swim
net.minecraft.class_4125
net.minecraft.entity.ai.brain.task.StayAboveWaterTask

Field summary

Modifier and TypeField
private final float
chance
field_18387
chance

Constructor summary

ModifierConstructor
public (float chance)

Method summary

Modifier and TypeMethod
public static <T extends MobEntity> boolean
shouldSwim(T mob)
method_55700(T arg0)
isUnderwater(T entity)
protected boolean
checkExtraStartConditions(ServerLevel level, Mob body)
method_19010(class_3218 arg0, class_1308 arg1)
shouldRun(ServerWorld arg0, MobEntity arg1)
protected boolean
canStillUse(ServerLevel level, Mob body, long timestamp)
method_19011(class_3218 arg0, class_1308 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, MobEntity arg1, long arg2)
protected void
tick(ServerLevel level, Mob body, long timestamp)
method_19012(class_3218 arg0, class_1308 arg1, long arg2)
keepRunning(ServerWorld arg0, MobEntity arg1, long arg2)
protected boolean
checkExtraStartConditions(ServerLevel level, LivingEntity body)
method_18919(class_3218 arg0, class_1309 arg1)
shouldRun(ServerWorld arg0, LivingEntity arg1)
protected boolean
canStillUse(ServerLevel level, LivingEntity body, long timestamp)
method_18927(class_3218 arg0, class_1309 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
tick(ServerLevel level, LivingEntity body, long timestamp)
method_18924(class_3218 arg0, class_1309 arg1, long arg2)
keepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)