LeviLamina
Loading...
Searching...
No Matches
LevelUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/dimension/MoonPhases.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class IBlockSource;
13class ILevel;
15class Player;
16namespace Core { class Path; }
17namespace Core { class Result; }
18// clang-format on
19
20namespace LevelUtils {
21// functions
22// NOLINTBEGIN
23#ifdef LL_PLAT_C
24MCNAPI ::Core::Result createNewLevelDirectory(::Core::Path const& pathToLevel);
25#endif
26
27MCNAPI bool extinguishFire(
28 ::IBlockSource& region,
29 ::BlockPos const& pos,
30 uchar face,
31 ::Actor* source,
32 ::LevelSoundManager& levelSoundManager,
33 ::Player* primaryPlayer
34);
35
36MCNAPI int getDay(int time);
37
38MCNAPI ::MoonPhases getMoonPhase(::ILevel const& level);
39
40MCNAPI int getTimeOfDay(int time);
41
42MCNAPI int projectToTimeOfDay(int currentTime, int targetTime);
43// NOLINTEND
44
45} // namespace LevelUtils
Definition Actor.h:125
Definition BlockPos.h:21
Definition Path.h:12
Definition Result.h:11
Definition IBlockSource.h:38
Definition ILevel.h:219
Definition LevelSoundManager.h:28
Definition Player.h:137