LeviLamina
Loading...
Searching...
No Matches
ItemCategory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace cereal { struct ReflectionCtx; }
8// clang-format on
9
10namespace SharedTypes::v1_19_40 {
11
13public:
14 // ItemCategory inner types define
15 enum class CreativeItemCategory : uchar {
16 All = 0,
17 Construction = 1,
18 Nature = 2,
19 Equipment = 3,
20 Items = 4,
21 ItemCommandOnly = 5,
22 Undefined = 6,
23 Count = 7,
24 };
25
26 enum class CreativeItemCategoryStringError : uchar {
27 EmptyString = 0,
28 NotFound = 1,
29 };
30
31public:
32 // static functions
33 // NOLINTBEGIN
35
36 MCNAPI static ::nonstd::expected<
37 ::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory,
38 ::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategoryStringError>
39 creativeItemCategoryFromString(::std::string_view str);
40
41 MCNAPI static ::std::string
42 stringFromCreativeItemCategory(::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory category);
43 // NOLINTEND
44
45public:
46 // static variables
47 // NOLINTBEGIN
48 MCNAPI static ::std::initializer_list<::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory> const&
50 // NOLINTEND
51};
52
53} // namespace SharedTypes::v1_19_40
Definition ItemCategory.h:12
static MCAPI ::nonstd::expected< ::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory, ::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategoryStringError > creativeItemCategoryFromString(::std::string_view str)
static MCAPI ::std::initializer_list<::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory > const & CREATIVE_ITEM_CATEGORY_MAPPING()
static MCAPI ::std::string stringFromCreativeItemCategory(::SharedTypes::v1_19_40::ItemCategory::CreativeItemCategory category)
static MCAPI void bindCreativeItemCategoryType(::cereal::ReflectionCtx &ctx)
Definition ReflectionCtx.h:11
Definition ctx.h:5