net.minecraft.world.entity.ai.behavior

public class JumpOnBed

extends Behavior<Mob>

All mapped superinterfaces:

BehaviorControl

byy
net.minecraft.world.entity.ai.behavior.JumpOnBed
net.minecraft.class_4245
net.minecraft.entity.ai.brain.task.JumpInBedTask
net.minecraft.world.entity.ai.behavior.BehaviorBedJump

Field summary

Modifier and TypeField
private static final int
c
MAX_TIME_TO_REACH_BED
field_30128
MAX_TICKS_OUT_OF_BED
private static final int
d
MIN_JUMPS
field_30129
MIN_JUMP_TICKS
private static final int
e
MAX_JUMPS
field_30130
JUMP_TIME_VARIANCE
private static final int
f
COOLDOWN_BETWEEN_JUMPS
field_30131
TICKS_TO_NEXT_JUMP
private final float
g
speedModifier
field_18988
walkSpeed
private BlockPos
h
targetBed
field_18989
bedPos
private int
i
remainingTimeToReachBed
field_18990
ticksOutOfBedUntilStopped
private int
j
remainingJumps
field_18991
jumpsRemaining
private int
k
remainingCooldownUntilNextJump
field_18992
ticksToNextJump

Constructor summary

ModifierConstructor
public (float walkSpeed)

Method summary

Modifier and TypeMethod
protected boolean
a(ash arg0, bwi arg1)
checkExtraStartConditions(ServerLevel arg0, Mob arg1)
method_19971(class_3218 arg0, class_1308 arg1)
shouldRun(ServerWorld arg0, MobEntity arg1)
protected void
a(ash arg0, bwi arg1, long arg2)
start(ServerLevel arg0, Mob arg1, long arg2)
method_19972(class_3218 arg0, class_1308 arg1, long arg2)
run(ServerWorld arg0, MobEntity arg1, long arg2)
protected void
b(ash arg0, bwi arg1, long arg2)
stop(ServerLevel arg0, Mob arg1, long arg2)
method_19976(class_3218 arg0, class_1308 arg1, long arg2)
finishRunning(ServerWorld arg0, MobEntity arg1, long arg2)
protected boolean
c(ash arg0, bwi arg1, long arg2)
canStillUse(ServerLevel arg0, Mob arg1, long arg2)
method_19978(class_3218 arg0, class_1308 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, MobEntity arg1, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
protected void
d(ash arg0, bwi arg1, long arg2)
tick(ServerLevel arg0, Mob arg1, long arg2)
method_19980(class_3218 arg0, class_1308 arg1, long arg2)
keepRunning(ServerWorld arg0, MobEntity arg1, long arg2)
private void
a(bwi arg0, jh arg1)
startWalkingTowardsBed(Mob arg0, BlockPos arg1)
method_19970(class_1308 arg0, class_2338 arg1)
setWalkTarget(MobEntity mob, BlockPos pos)
private boolean
b(ash arg0, bwi arg1)
nearBed(ServerLevel arg0, Mob arg1)
method_19975(class_3218 arg0, class_1308 arg1)
shouldStartJumping(ServerWorld world, MobEntity mob)
private boolean
c(ash arg0, bwi arg1)
onOrOverBed(ServerLevel arg0, Mob arg1)
method_19977(class_3218 arg0, class_1308 arg1)
isAboveBed(ServerWorld world, MobEntity mob)
private boolean
d(ash arg0, bwi arg1)
onBedSurface(ServerLevel arg0, Mob arg1)
method_19979(class_3218 arg0, class_1308 arg1)
isOnBed(ServerWorld world, MobEntity mob)
private boolean
a(ash arg0, jh arg1)
isBed(ServerLevel arg0, BlockPos arg1)
method_19974(class_3218 arg0, class_2338 arg1)
isBedAt(ServerWorld world, BlockPos pos)
private Optional<BlockPos>
a(bwi arg0)
getNearestBed(Mob arg0)
method_19969(class_1308 arg0)
getNearestBed(MobEntity mob)
private boolean
e(ash arg0, bwi arg1)
tiredOfWalking(ServerLevel arg0, Mob arg1)
method_19981(class_3218 arg0, class_1308 arg1)
isBedGoneTooLong(ServerWorld world, MobEntity mob)
private boolean
f(ash arg0, bwi arg1)
tiredOfJumping(ServerLevel arg0, Mob arg1)
method_19982(class_3218 arg0, class_1308 arg1)
isDoneJumping(ServerWorld world, MobEntity mob)