mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
31 lines
776 B
C++
31 lines
776 B
C++
#pragma once
|
|
#include "APIHelp.h"
|
|
|
|
#include <string>
|
|
|
|
//////////////////// Classes ////////////////////
|
|
class BlockActor;
|
|
class BlockEntityClass : public ScriptClass {
|
|
private:
|
|
BlockActor* blockEntity;
|
|
int dim;
|
|
|
|
public:
|
|
explicit BlockEntityClass(BlockActor* be, int dim);
|
|
|
|
BlockActor* get() {
|
|
return blockEntity;
|
|
}
|
|
|
|
static Local<Object> newBlockEntity(BlockActor* be, int dim);
|
|
static BlockActor* extract(Local<Value> v);
|
|
Local<Value> asPointer(const Arguments& args);
|
|
|
|
Local<Value> getPos();
|
|
Local<Value> getType();
|
|
|
|
Local<Value> getNbt(const Arguments& args);
|
|
Local<Value> setNbt(const Arguments& args);
|
|
Local<Value> getBlock(const Arguments& args);
|
|
};
|
|
extern ClassDefine<BlockEntityClass> BlockEntityClassBuilder; |