first commit
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user