LeviLamina
Loading...
Searching...
No Matches
ScriptPotions.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/world/item/alchemy/PotionType.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12class Potion;
13namespace ScriptModuleMinecraft { class ScriptPotionDeliveryType; }
14namespace ScriptModuleMinecraft { class ScriptPotionEffectType; }
15namespace Scripting { class WeakLifetimeScope; }
16namespace Scripting { struct ClassBinding; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
22public:
23 // ScriptPotions inner types define
24 using Key = ::HashedString;
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<
30 8,
31 64,
32 ::std::unordered_map<
33 ::PotionType,
35 mPotionDeliveryTypeHandles;
36 ::ll::TypedStorage<
37 8,
38 64,
39 ::std::unordered_map<
40 ::std::string,
42 mPotionEffectTypeHandles;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotions>
49 _getHandle(::Scripting::WeakLifetimeScope& scope);
50
51 MCAPI static ::Scripting::ClassBinding bind();
52
53 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType>
54 getOrCreatePotionDeliveryType(::PotionType potionType, ::Scripting::WeakLifetimeScope scope);
55
56 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType>
57 getOrCreatePotionEffectType(
58 ::gsl::not_null<::std::shared_ptr<::Potion const>> potion,
60 );
61 // NOLINTEND
62};
63
64} // namespace ScriptModuleMinecraft
Definition HashedString.h:5
Definition Potion.h:18
Definition ScriptPotionDeliveryType.h:15
Definition ScriptPotionEffectType.h:13
Definition ScriptPotions.h:21
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ClassBinding.h:10