-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Constructor Summary
Constructors
| Constructor |
Description |
JumpInBedTask(float walkSpeed) |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
protected void |
finishRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
|
private Optional<BlockPos> |
getNearestBed(MobEntity mob) |
|
private boolean |
isAboveBed(ServerWorld world,
MobEntity mob) |
|
private boolean |
isBedAt(ServerWorld world,
BlockPos pos) |
|
private boolean |
isBedGoneTooLong(ServerWorld world,
MobEntity mob) |
|
private boolean |
isDoneJumping(ServerWorld world,
MobEntity mob) |
|
private boolean |
isOnBed(ServerWorld world,
MobEntity mob) |
|
protected boolean |
isTimeLimitExceeded(long time) |
|
protected void |
keepRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
|
protected void |
run(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
|
private void |
setWalkTarget(MobEntity mob,
BlockPos pos) |
|
protected boolean |
shouldKeepRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
|
protected boolean |
shouldRun(ServerWorld serverWorld,
MobEntity mobEntity) |
|
private boolean |
shouldStartJumping(ServerWorld world,
MobEntity mob) |
|
-
Field Details
-
private final float walkSpeed
-
-
private int ticksOutOfBedUntilStopped
-
private int jumpsRemaining
-
private int ticksToNextJump
-
Constructor Details
-
public JumpInBedTask(float walkSpeed)
-