aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/JumpControl.cpp
blob: 458e60318ff180e5f4f282b8bd5c95c68fd8828e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "stdafx.h"
#include "net.minecraft.world.entity.h"
#include "JumpControl.h"

JumpControl::JumpControl(Mob *mob)
{
	_jump = false;

	this->mob = mob;
}

void JumpControl::jump()
{
	_jump = true;
}

void JumpControl::tick()
{
	mob->setJumping(_jump);
	_jump = false;
}