mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-07 12:18:11 +00:00
19 lines
444 B
C++
19 lines
444 B
C++
#include "Global.h"
|
|
#include <MC/ItemActor.hpp>
|
|
|
|
ItemStack* ItemActor::getItemStack() {
|
|
return (ItemStack*)((uintptr_t)this + 1776); // IDA Player::take
|
|
}
|
|
|
|
int ItemActor::getDespawnTime() {
|
|
return dAccess<int, 489 * 4>(this); // ItemActor::postNormalTick
|
|
}
|
|
|
|
bool ItemActor::setDespawnTime(int a1) {
|
|
dAccess<int, 489 * 4>(this) = a1;
|
|
return true;
|
|
}
|
|
|
|
int ItemActor::getLatestSpawnTime() {
|
|
return dAccess<int, 484 * 4>(this);
|
|
} |