Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
21
Minecraft.World/JumpControl.cpp
Normal file
21
Minecraft.World/JumpControl.cpp
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue