Class SwimTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<MobEntity>
-
- net.minecraft.entity.ai.brain.task.SwimTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private floatchance-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description SwimTask(float p_i231540_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanStillUse(ServerWorld p_212834_1_, MobEntity p_212834_2_, long p_212834_3_)protected booleancheckExtraStartConditions(ServerWorld p_212832_1_, MobEntity p_212832_2_)protected voidtick(ServerWorld p_212833_1_, MobEntity p_212833_2_, long p_212833_3_)
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, MobEntity p_212832_2_)
- Overrides:
checkExtraStartConditionsin classTask<MobEntity>
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, MobEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUsein classTask<MobEntity>
-
tick
protected void tick(ServerWorld p_212833_1_, MobEntity p_212833_2_, long p_212833_3_)
-
-