Class WanderIndoorsTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntityWithAi>
net.minecraft.entity.ai.brain.task.WanderIndoorsTask
public class WanderIndoorsTask extends Task<MobEntityWithAi>
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private floatspeed -
Constructor Summary
Constructors Constructor Description WanderIndoorsTask(float speed) -
Method Summary
Modifier and Type Method Description protected voidrun(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi, long long2)protected booleanshouldRun(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi)Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
speed
private final float speed
-
-
Constructor Details
-
WanderIndoorsTask
public WanderIndoorsTask(float speed)
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<MobEntityWithAi>
-
run
- Overrides:
runin classTask<MobEntityWithAi>
-