mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-03 04:23:39 +00:00
修正HitResult::getEntity
函数
This commit is contained in:
parent
f4a3110d8f
commit
bcf199e8d2
@ -6,6 +6,7 @@
|
|||||||
#define BEFORE_EXTRA
|
#define BEFORE_EXTRA
|
||||||
// Include Headers or Declare Types Here
|
// Include Headers or Declare Types Here
|
||||||
|
|
||||||
|
class Actor;
|
||||||
class StackResultStorageEntity;
|
class StackResultStorageEntity;
|
||||||
|
|
||||||
enum class HitResultType:int {
|
enum class HitResultType:int {
|
||||||
@ -37,9 +38,10 @@ class HitResult {
|
|||||||
public:
|
public:
|
||||||
inline bool isHit() {
|
inline bool isHit() {
|
||||||
return (unsigned int)(this->type) > 3;
|
return (unsigned int)(this->type) > 3;
|
||||||
}
|
};
|
||||||
|
inline Actor* getEntity() {
|
||||||
LIAPI Actor* getEntity();
|
return (Actor*)(this->actorRef);
|
||||||
|
};
|
||||||
LIAPI FaceID getFacing();
|
LIAPI FaceID getFacing();
|
||||||
LIAPI Vec3 getPos();
|
LIAPI Vec3 getPos();
|
||||||
LIAPI bool isHitLiquid();
|
LIAPI bool isHitLiquid();
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
#include <llapi/mc/HitResult.hpp>
|
#include <llapi/mc/HitResult.hpp>
|
||||||
#include <llapi/HookAPI.h>
|
#include <llapi/HookAPI.h>
|
||||||
#include <llapi/mc/Actor.hpp>
|
|
||||||
|
|
||||||
Actor* HitResult::getEntity() {
|
|
||||||
return (Actor*)this->actorRef;
|
|
||||||
}
|
|
||||||
|
|
||||||
FaceID HitResult::getFacing() {
|
FaceID HitResult::getFacing() {
|
||||||
return dAccess<FaceID>(this, ll::offset::HITRESULTAPI_getFacing);
|
return dAccess<FaceID>(this, ll::offset::HITRESULTAPI_getFacing);
|
||||||
|
Loading…
Reference in New Issue
Block a user