Initial commit
This commit is contained in:
commit
b0e73a61aa
16345 files changed
+3104967
No files matched your search
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in new issue
Block a user