mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
// This Header is auto generated by BDSLiteLoader Toolchain
|
|
#pragma once
|
|
#define AUTO_GENERATED
|
|
#include "llapi/Global.h"
|
|
|
|
#define BEFORE_EXTRA
|
|
#include "CompoundTag.hpp"
|
|
#undef BEFORE_EXTRA
|
|
|
|
class CommandPosition {
|
|
|
|
#define AFTER_EXTRA
|
|
// Add Member There
|
|
#define DISABLE_CONSTRUCTOR_PREVENTION_COMMANDPOSITION
|
|
float offsetX;
|
|
float offsetY;
|
|
float offsetZ;
|
|
bool relativeX;
|
|
bool relativeY;
|
|
bool relativeZ;
|
|
bool local;
|
|
|
|
public:
|
|
CommandPosition(){
|
|
this->offsetX = 0;
|
|
this->offsetY = 0;
|
|
this->offsetZ = 0;
|
|
this->relativeX = 1;
|
|
this->relativeY = 1;
|
|
this->relativeZ = 1;
|
|
this->local = 0;
|
|
}
|
|
CommandPosition(Vec3 *pos){
|
|
this->offsetX = pos->x;
|
|
this->offsetY = pos->y;
|
|
this->offsetZ = pos->z;
|
|
this->relativeX = pos->x + 2;
|
|
this->relativeY = pos->y + 2;
|
|
this->relativeZ = pos->z + 2;
|
|
this->local = 0;
|
|
}
|
|
CompoundTag serialize() const{
|
|
CompoundTag tag;
|
|
tag.putFloat("OffsetX",0);
|
|
tag.putFloat("OffsetY",0);
|
|
tag.putFloat("OffsetZ",0);
|
|
tag.putBoolean("RelativeX",this->relativeX);
|
|
tag.putBoolean("RelativeY",this->relativeY);
|
|
tag.putBoolean("RelativeZ",this->relativeZ);
|
|
tag.putBoolean("Local",this->local);
|
|
return tag;
|
|
};
|
|
#undef AFTER_EXTRA
|
|
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_COMMANDPOSITION
|
|
public:
|
|
class CommandPosition& operator=(class CommandPosition const &) = delete;
|
|
CommandPosition(class CommandPosition const &) = delete;
|
|
CommandPosition() = delete;
|
|
#endif
|
|
|
|
public:
|
|
#ifdef ENABLE_VIRTUAL_FAKESYMBOL_COMMANDPOSITION
|
|
#endif
|
|
MCAPI class BlockPos getBlockPos(class CommandOrigin const &, class Vec3 const &) const;
|
|
MCAPI class Vec3 getPosition(class CommandOrigin const &, class Vec3 const &) const;
|
|
MCAPI class Vec3 getPosition(class Vec3 const &, class Vec3 const &) const;
|
|
|
|
}; |