LeviLamina
Loading...
Searching...
No Matches
ChunkPos.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
class
BlockPos
;
8
class
Vec3
;
9
// clang-format on
10
11
class
alignas(uint64)
ChunkPos
:
public
ll::math::intN2<ChunkPos> {
12
public
:
13
template
<std::
float
ing_po
int
T0, std::
float
ing_po
int
T1>
14
[[nodiscard]]
constexpr
ChunkPos
(T0 x, T1 z)
15
: intN2((
static_cast<
int
>
(std::floor(x)) >> 4), (
static_cast<
int
>
(std::floor(z)) >> 4)) {}
16
17
using
intN2::intN2;
18
19
public
:
20
// member functions
21
// NOLINTBEGIN
22
MCAPI
explicit
ChunkPos
(
::BlockPos
const
& pos);
23
24
MCAPI
explicit
ChunkPos
(
::Vec3
const
& pos);
25
// NOLINTEND
26
27
public
:
28
// static variables
29
// NOLINTBEGIN
30
MCAPI static ::ChunkPos
const
& INVALID();
31
32
MCAPI static ::ChunkPos
const
& MAX();
33
34
MCAPI static ::ChunkPos
const
& MIN();
35
36
MCAPI static ::ChunkPos
const
& ONE();
37
// NOLINTEND
38
39
public
:
40
// constructor thunks
41
// NOLINTBEGIN
42
MCAPI
void
* $ctor(
::BlockPos
const
& pos);
43
44
MCAPI
void
* $ctor(
::Vec3
const
& pos);
45
// NOLINTEND
46
};
BlockPos
Definition
BlockPos.h:18
ChunkPos
Definition
ChunkPos.h:11
Vec3
Definition
Vec3.h:10
src
mc
world
level
ChunkPos.h
Generated on Sat Apr 26 2025 05:56:23 for LeviLamina by
1.12.0