mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include "APIHelp.h"
|
|
|
|
|
|
//////////////////// Classes ////////////////////
|
|
class ItemStack;
|
|
class ItemClass : public ScriptClass {
|
|
private:
|
|
ItemStack* item;
|
|
|
|
// Pre data
|
|
std::string name, type;
|
|
int id, count, aux;
|
|
|
|
public:
|
|
explicit ItemClass(ItemStack* p);
|
|
void preloadData();
|
|
|
|
ItemStack* get() {
|
|
return item;
|
|
}
|
|
|
|
static Local<Object> newItem(ItemStack* p);
|
|
static ItemStack* extract(Local<Value> v);
|
|
Local<Value> asPointer(const Arguments& args);
|
|
|
|
Local<Value> getName();
|
|
Local<Value> getType();
|
|
Local<Value> getId();
|
|
Local<Value> getCount();
|
|
Local<Value> getAux();
|
|
|
|
Local<Value> set(const Arguments& args);
|
|
Local<Value> clone(const Arguments& args);
|
|
Local<Value> isNull(const Arguments& args);
|
|
Local<Value> setNull(const Arguments& args);
|
|
Local<Value> setAux(const Arguments& args);
|
|
Local<Value> setLore(const Arguments& args);
|
|
Local<Value> getNbt(const Arguments& args);
|
|
Local<Value> setNbt(const Arguments& args);
|
|
};
|
|
extern ClassDefine<ItemClass> ItemClassBuilder; |