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