mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
90 lines
2.1 KiB
C++
90 lines
2.1 KiB
C++
/**
|
|
* @file ChunkBlockPos.hpp
|
|
* @note This Header is auto generated by LiteLoaderBDS Toolchain.
|
|
*
|
|
*/
|
|
#pragma once
|
|
#define AUTO_GENERATED
|
|
#include "../Global.h"
|
|
|
|
#define BEFORE_EXTRA
|
|
// Include Headers or Declare Types Here
|
|
|
|
class ChunkLocalHeight {
|
|
public:
|
|
short mVal;
|
|
ChunkLocalHeight(short v)
|
|
: mVal(v){};
|
|
ChunkLocalHeight()
|
|
: mVal(0){};
|
|
};
|
|
|
|
#undef BEFORE_EXTRA
|
|
|
|
/**
|
|
* @brief MC class ChunkBlockPos.
|
|
*
|
|
*/
|
|
class ChunkBlockPos {
|
|
|
|
#define AFTER_EXTRA
|
|
// Add Member There
|
|
#define DISABLE_CONSTRUCTOR_PREVENTION_CHUNKBLOCKPOS
|
|
public:
|
|
char x;
|
|
char z;
|
|
ChunkLocalHeight y;
|
|
ChunkBlockPos()
|
|
: x(0)
|
|
, y(0)
|
|
, z(0){};
|
|
|
|
ChunkBlockPos(char x, short y, char z)
|
|
: x(x)
|
|
, y(y)
|
|
, z(z){};
|
|
ChunkBlockPos(class BlockPos const & pos, short a2){
|
|
ChunkBlockPos(pos.x & 16,pos.y - a2,pos.z & 16);
|
|
};
|
|
ChunkBlockPos(class BlockPos const & pos){
|
|
ChunkBlockPos(pos.x & 16,pos.y,pos.z & 16);
|
|
}
|
|
ChunkBlockPos(unsigned char x, class ChunkLocalHeight y, unsigned char z){
|
|
ChunkBlockPos(x, y, z);
|
|
}
|
|
#undef AFTER_EXTRA
|
|
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_CHUNKBLOCKPOS
|
|
public:
|
|
class ChunkBlockPos& operator=(class ChunkBlockPos const &) = delete;
|
|
ChunkBlockPos(class ChunkBlockPos const &) = delete;
|
|
ChunkBlockPos() = delete;
|
|
#endif
|
|
|
|
public:
|
|
/**
|
|
* @symbol ??0ChunkBlockPos@@QEAA@EVChunkLocalHeight@@E@Z
|
|
* @hash -1288855647
|
|
*/
|
|
//MCAPI ChunkBlockPos(unsigned char, class ChunkLocalHeight, unsigned char);
|
|
/**
|
|
* @symbol ??0ChunkBlockPos@@QEAA@AEBVBlockPos@@F@Z
|
|
* @hash -1853558367
|
|
*/
|
|
//MCAPI ChunkBlockPos(class BlockPos const &, short);
|
|
/**
|
|
* @symbol ?toPos@ChunkBlockPos@@QEBA?AVPos@@XZ
|
|
* @hash 1137411744
|
|
*/
|
|
//MCAPI class Pos toPos() const;
|
|
/**
|
|
* @symbol ?from2D@ChunkBlockPos@@SA?AV1@EE@Z
|
|
* @hash 2007391019
|
|
*/
|
|
//MCAPI static class ChunkBlockPos from2D(unsigned char, unsigned char);
|
|
/**
|
|
* @symbol ?fromLegacyIndex@ChunkBlockPos@@SA?AV1@G@Z
|
|
* @hash -1358394925
|
|
*/
|
|
//MCAPI static class ChunkBlockPos fromLegacyIndex(unsigned short);
|
|
|
|
}; |