mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
13 lines
392 B
C++
13 lines
392 B
C++
#include <MC/CommandOrigin.hpp>
|
|
#include <MC/Actor.hpp>
|
|
#include "MC/CompoundTag.hpp"
|
|
|
|
ServerPlayer* CommandOrigin::getPlayer() const {
|
|
Actor* origin = getEntity();
|
|
return origin->isPlayer() ? (ServerPlayer*)origin : nullptr;
|
|
}
|
|
// CompoundTag CommandOrigin::serialize_1() const {
|
|
// CompoundTag tag;
|
|
// tag.putByte("OriginType",getOriginType());
|
|
// return tag;
|
|
// };
|