Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockArchetypeDispatcher.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockShape.h"
7
9class CompoundTag;
10namespace cereal {
11struct ReflectionCtx;
12}
13
14// clang-format off
15class BlockType;
16class Material;
17namespace SharedTypes::v1_26_20::BlockDefinition { struct BlockArchetype; }
18// clang-format on
19
21public:
23 [[nodiscard]] LLNDAPI static ::BlockType* tryRegisterBlock(
25 ::std::string const& blockName,
26 int blockID,
27 ::Material const& material
28 );
29
30 // static functions
31 // NOLINTBEGIN
32#ifdef LL_PLAT_S
33 MCNAPI static void buildNetworkTag(
35 ::CompoundTag& tag,
37 );
38#endif
39
40#ifdef LL_PLAT_C
41 MCNAPI static ::BlockShape getBlockShape(::std::string const& blockName);
42#endif
43
44#ifdef LL_PLAT_S
45 MCNAPI static void initializeFromNetwork(
46 ::CompoundTag const& tag,
49 );
50
51 MCNAPI static ::BlockType* tryRegisterBlock(
52 ::BlockTypeRegistry& registry,
54 ::std::string const& blockName,
55 int blockID,
56 ::Material const& material
57 );
58#endif
59 // NOLINTEND
60};
Definition BlockTypeRegistry.h:23
Definition BlockType.h:79
Definition CompoundTag.h:18
Definition Material.h:8
Definition BlockArchetypeDispatcher.h:20
static LLNDAPI ::BlockType * tryRegisterBlock(::SharedTypes::v1_26_20::BlockDefinition::BlockArchetype const &archetypeData, ::std::string const &blockName, int blockID, ::Material const &material)
Definition ReflectionCtx.h:11
Definition ctx.h:5