Class StopRidingEntityTask<E extends LivingEntity,T extends Entity>
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<E>
-
- net.minecraft.entity.ai.brain.task.StopRidingEntityTask<E,T>
-
public class StopRidingEntityTask<E extends LivingEntity,T extends Entity> extends Task<E>
-
-
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 java.util.function.BiPredicate<E,Entity>
dontRideIf
private int
maxWalkDistToRideTarget
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description StopRidingEntityTask(int p_i231515_1_, java.util.function.BiPredicate<E,Entity> p_i231515_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
private boolean
isVehicleValid(E p_233892_1_, Entity p_233892_2_)
protected void
start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
-
-
-
Field Detail
-
maxWalkDistToRideTarget
private final int maxWalkDistToRideTarget
-
dontRideIf
private final java.util.function.BiPredicate<E extends LivingEntity,Entity> dontRideIf
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<E extends LivingEntity>
-
start
protected void start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<E extends LivingEntity>
-
-