mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
Add Player::getClientUUID
This commit is contained in:
parent
39f689ede4
commit
08b1967cc3
@ -24,6 +24,9 @@ class Player : public Mob {
|
|||||||
|
|
||||||
#define AFTER_EXTRA
|
#define AFTER_EXTRA
|
||||||
// Add new members to class
|
// Add new members to class
|
||||||
|
// mClientUUID 2720
|
||||||
|
// mCertificate 2736
|
||||||
|
// mClientSubId 3520
|
||||||
public:
|
public:
|
||||||
enum PositionMode : char {
|
enum PositionMode : char {
|
||||||
NORMAL,
|
NORMAL,
|
||||||
@ -34,8 +37,9 @@ public:
|
|||||||
|
|
||||||
LIAPI std::string getName();
|
LIAPI std::string getName();
|
||||||
LIAPI std::string getRealName();
|
LIAPI std::string getRealName();
|
||||||
LIAPI std::string getUuid();
|
LIAPI std::string getUuid()const;
|
||||||
LIAPI std::string getXuid()const;
|
LIAPI std::string getXuid()const;
|
||||||
|
LIAPI mce::UUID getClientUUID()const;
|
||||||
LIAPI unsigned char getClientSubId();
|
LIAPI unsigned char getClientSubId();
|
||||||
LIAPI string getDeviceTypeName();
|
LIAPI string getDeviceTypeName();
|
||||||
LIAPI int getAvgPing();
|
LIAPI int getAvgPing();
|
||||||
|
@ -311,7 +311,7 @@ bool Player::refreshAttributes(std::vector<Attribute const*> const& attributes)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
string Player::getUuid() {
|
string Player::getUuid() const{
|
||||||
auto result = ExtendedCertificate::getIdentity(*getCertificate());
|
auto result = ExtendedCertificate::getIdentity(*getCertificate());
|
||||||
return result.asString();
|
return result.asString();
|
||||||
}
|
}
|
||||||
@ -320,6 +320,10 @@ string Player::getXuid() const{
|
|||||||
return ExtendedCertificate::getXuid(*getCertificate());
|
return ExtendedCertificate::getXuid(*getCertificate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mce::UUID Player::getClientUUID()const{
|
||||||
|
return dAccess<mce::UUID>(this,2720);
|
||||||
|
};
|
||||||
|
|
||||||
unsigned char Player::getClientSubId() {
|
unsigned char Player::getClientSubId() {
|
||||||
//ServerPlayer::sendNetworkPacket 参4
|
//ServerPlayer::sendNetworkPacket 参4
|
||||||
return dAccess<unsigned char>(this,3520);
|
return dAccess<unsigned char>(this,3520);
|
||||||
|
Loading…
Reference in New Issue
Block a user