Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockDefinition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/sem_ver/SemVersion.h"
7#include "mc/resources/MinEngineVersion.h"
8#include "mc/world/level/block/definition/BlockComponentGroupDescription.h"
9#include "mc/world/level/block/definition/BlockDescription.h"
10
11// auto generated forward declare list
12// clang-format off
14class DefinitionEvent;
16namespace Core { class Path; }
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::SemVersion> mFormatVersion;
25 ::ll::TypedStorage<8, 32, ::MinEngineVersion> mMinEngineVersion;
26 ::ll::TypedStorage<8, 24, ::SemVersion> mOriginalJsonVersion;
27 ::ll::TypedStorage<8, 240, ::BlockDescription> mDescription;
28 ::ll::TypedStorage<8, 112, ::BlockComponentGroupDescription> mBaseComponents;
29 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPermutationDescription>> mPermutationDescriptions;
30 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DefinitionEvent>> mEventHandlers;
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
37
38#ifdef LL_PLAT_C
40#endif
41
43
44 MCNAPI ::BlockDefinition& operator=(::BlockDefinition&&);
45
46 MCNAPI ::BlockDefinition& operator=(::BlockDefinition const&);
47
48 MCAPI ~BlockDefinition();
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCNAPI static ::CerealDocumentUpgrader& initCerealDocumentUpgrader(::cereal::ReflectionCtx& ctx);
55
57
58#ifdef LL_PLAT_S
59 MCNAPI static ::std::pair<bool, ::SemVersion> upgradeJson(
61 ::std::string& json,
62 ::Core::Path const& resourceName,
63 bool betaApis,
64 ::std::optional<::SemVersion> minVersion
65 );
66#endif
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor();
73
74#ifdef LL_PLAT_C
75 MCNAPI void* $ctor(::BlockDefinition&&);
76#endif
77
78 MCNAPI void* $ctor(::BlockDefinition const&);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86};
Definition CerealDocumentUpgrader.h:13
Definition Path.h:10
Definition DefinitionEvent.h:18
MCAPI::BlockDefinition & operator=(::BlockDefinition &&)
MCAPI BlockDefinition(::BlockDefinition const &)
MCAPI void * $ctor()
MCAPI void * $ctor(::BlockDefinition const &)
static MCAPI void registerBlockDefinitionTypes(::cereal::ReflectionCtx &ctx)
MCAPI::BlockDefinition & operator=(::BlockDefinition const &)
static MCAPI ::CerealDocumentUpgrader & initCerealDocumentUpgrader(::cereal::ReflectionCtx &ctx)
MCAPI BlockDefinition()
Definition BlockPermutationDescription.h:9
Definition ReflectionCtx.h:11
Definition ctx.h:5