JumpControl .java

net.minecraft.world.entity.ai.control.JumpControl (class, 22 lines): implements Control. members: jump, mob, tick. imports: Mob.

net.minecraft.world.entity.ai.controlclass22 linescommon371 B

Implements

API Surface (2)

void jump()
void tick()

Fields & Constants (2)

mob
jump

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

JumpControl.java22 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.ai.control;
2
3
import net.minecraft.world.entity.Mob;
4
5
public class JumpControl implements Control {
6
	private final Mob mob;
7
	protected boolean jump;
8
9
	public JumpControl(final Mob mob) {
10
		this.mob = mob;
11
	}
12
13
	public void jump() {
14
		this.jump = true;
15
	}
16
17
	public void tick() {
18
		this.mob.setJumping(this.jump);
19
		this.jump = false;
20
	}
21
}
22

Decompiled Minecraft 26.3 source of JumpControl (net/minecraft/world/entity/ai/control/JumpControl.java) with Mojang official mappings, stored verbatim on the site.