Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
SubChunkInterlocker.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/platform/threading/SpinLockImpl.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
SpinLockImpl
;
11
class
SubChunkPos
;
12
// clang-format on
13
14
class
SubChunkInterlocker
{
15
public
:
16
// member variables
17
// NOLINTBEGIN
18
::ll::TypedStorage<8, 24, ::SpinLockImpl> mSpinLock;
19
::ll::TypedStorage<8, 24, ::std::vector<::SubChunkPos>> mLocked3x3x3SubChunks;
20
// NOLINTEND
21
22
public
:
23
// member functions
24
// NOLINTBEGIN
25
#ifdef LL_PLAT_C
26
MCNAPI
bool
tryLock3x3x3(
::SubChunkPos
const
& center);
27
#endif
28
29
MCNAPI
bool
tryLock3x3xN
(
::SubChunkPos
const
& bottom,
int
top);
30
31
#ifdef LL_PLAT_C
32
MCNAPI
void
unlock3x3x3(
::SubChunkPos
const
& center);
33
#endif
34
35
MCNAPI
void
unlock3x3xN
(
::SubChunkPos
const
& bottom,
int
top);
36
// NOLINTEND
37
};
SpinLockImpl
Definition
SpinLockImpl.h:5
SubChunkInterlocker
Definition
SubChunkInterlocker.h:14
SubChunkInterlocker::unlock3x3xN
MCAPI void unlock3x3xN(::SubChunkPos const &bottom, int top)
SubChunkInterlocker::tryLock3x3xN
MCAPI bool tryLock3x3xN(::SubChunkPos const &bottom, int top)
SubChunkPos
Definition
SubChunkPos.h:5
src
mc
world
level
chunk
SubChunkInterlocker.h
Generated on
for LeviLamina by
1.16.1