net.minecraft.world.entity.ai.behavior

public class JumpOnBed

extends Behavior<Mob>

All mapped superinterfaces:

BehaviorControl

bwj
net.minecraft.world.entity.ai.behavior.JumpOnBed
net.minecraft.class_4245
net.minecraft.entity.ai.brain.task.JumpInBedTask
net.minecraft.src.C_599_
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
f_147588_
private static final int
d
MIN_JUMPS
field_30129
MIN_JUMP_TICKS
f_147589_
private static final int
e
MAX_JUMPS
field_30130
JUMP_TIME_VARIANCE
f_147590_
private static final int
f
COOLDOWN_BETWEEN_JUMPS
field_30131
TICKS_TO_NEXT_JUMP
f_147591_
private final float
g
speedModifier
field_18988
walkSpeed
f_23329_
private BlockPos
h
targetBed
field_18989
bedPos
f_23330_
private int
i
remainingTimeToReachBed
field_18990
ticksOutOfBedUntilStopped
f_23331_
private int
j
remainingJumps
field_18991
jumpsRemaining
f_23332_
private int
k
remainingCooldownUntilNextJump
field_18992
ticksToNextJump
f_23333_

Constructor summary

ModifierConstructor
public (float walkSpeed)

Method summary

Modifier and TypeMethod
protected boolean
a(arf arg0, btt arg1)
checkExtraStartConditions(ServerLevel arg0, Mob arg1)
method_19971(class_3218 arg0, class_1308 arg1)
shouldRun(ServerWorld arg0, MobEntity arg1)
m_6114_(C_12_ p_23347_, C_526_ arg1)
protected void
a(arf arg0, btt 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)
m_6735_(C_12_ p_23350_, C_526_ p_23351_, long arg2)
protected void
b(arf arg0, btt 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)
m_6732_(C_12_ p_23373_, C_526_ p_23374_, long arg2)
protected boolean
c(arf arg0, btt 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)
m_6737_(C_12_ p_23384_, C_526_ p_23385_, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
m_7773_(long arg0)
protected void
d(arf arg0, btt 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)
m_6725_(C_12_ p_23395_, C_526_ p_23396_, long arg2)
private void
a(btt arg0, iz arg1)
startWalkingTowardsBed(Mob arg0, BlockPos arg1)
method_19970(class_1308 arg0, class_2338 arg1)
setWalkTarget(MobEntity mob, BlockPos pos)
m_23361_(C_526_ p_23363_, C_4675_ arg1)
private boolean
b(arf arg0, btt arg1)
nearBed(ServerLevel arg0, Mob arg1)
method_19975(class_3218 arg0, class_1308 arg1)
shouldStartJumping(ServerWorld world, MobEntity mob)
m_23368_(C_12_ p_23370_, C_526_ arg1)
private boolean
c(arf arg0, btt arg1)
onOrOverBed(ServerLevel arg0, Mob arg1)
method_19977(class_3218 arg0, class_1308 arg1)
isAboveBed(ServerWorld world, MobEntity mob)
m_23379_(C_12_ p_23381_, C_526_ arg1)
private boolean
d(arf arg0, btt arg1)
onBedSurface(ServerLevel arg0, Mob arg1)
method_19979(class_3218 arg0, class_1308 arg1)
isOnBed(ServerWorld world, MobEntity mob)
m_23390_(C_12_ p_23392_, C_526_ arg1)
private boolean
a(arf arg0, iz arg1)
isBed(ServerLevel arg0, BlockPos arg1)
method_19974(class_3218 arg0, class_2338 arg1)
isBedAt(ServerWorld world, BlockPos pos)
m_23356_(C_12_ p_23358_, C_4675_ arg1)
private Optional<BlockPos>
a(btt arg0)
getNearestBed(Mob arg0)
method_19969(class_1308 arg0)
getNearestBed(MobEntity mob)
m_23359_(C_526_ arg0)
private boolean
e(arf arg0, btt arg1)
tiredOfWalking(ServerLevel arg0, Mob arg1)
method_19981(class_3218 arg0, class_1308 arg1)
isBedGoneTooLong(ServerWorld world, MobEntity mob)
m_23397_(C_12_ p_23399_, C_526_ arg1)
private boolean
f(arf arg0, btt arg1)
tiredOfJumping(ServerLevel arg0, Mob arg1)
method_19982(class_3218 arg0, class_1308 arg1)
isDoneJumping(ServerWorld world, MobEntity mob)
m_23400_(C_12_ p_23402_, C_526_ arg1)