mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 21:03:37 +00:00
16 lines
315 B
C++
16 lines
315 B
C++
#include "../../Platform/stdafx.h"
|
|
#include "../../Headers/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;
|
|
} |