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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/world/item/alchemy/Potion.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Potion;
14namespace ScriptModuleMinecraft { class ScriptItemStack; }
15namespace ScriptModuleMinecraft { class ScriptPotionDeliveryType; }
16namespace ScriptModuleMinecraft { class ScriptPotionEffectType; }
17namespace ScriptModuleMinecraft { struct ScriptInvalidPotionDeliveryTypeError; }
18namespace ScriptModuleMinecraft { struct ScriptInvalidPotionEffectTypeError; }
19namespace Scripting { class WeakLifetimeScope; }
20namespace Scripting { struct ClassBinding; }
21namespace Scripting { struct EngineError; }
22// clang-format on
23
24namespace ScriptModuleMinecraft {
25
27public:
28 // member variables
29 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 ScriptPotions& operator=(ScriptPotions const&);
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI ScriptPotions();
42
44
46
47 MCNAPI ::ScriptModuleMinecraft::ScriptPotions& operator=(::ScriptModuleMinecraft::ScriptPotions&&);
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCNAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotions>
55
56 MCNAPI static ::Scripting::ClassBinding bind();
57
58 MCNAPI static ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType>>
60
61 MCNAPI static ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType>>
63
64 MCNAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType>
65 getOrCreatePotionDeliveryType(::Potion::PotionType potionType, ::Scripting::WeakLifetimeScope scope);
66
67 MCNAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType>
69 ::gsl::not_null<::std::shared_ptr<::Potion const>> potion,
71 );
72
73 MCNAPI static ::std::optional<
75 getPotionDeliveryType(::Scripting::WeakLifetimeScope scope, ::std::string const& potionTypeId);
76
77 MCNAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType>>
78 getPotionEffectType(::Scripting::WeakLifetimeScope scope, ::std::string const& potionTypeId);
79
80 MCNAPI static ::Scripting::Result<
87 ::std::variant<
88 ::std::string,
90 ::std::variant<
91 ::std::string,
93 );
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCNAPI void* $ctor();
100
102
104 // NOLINTEND
105};
106
107} // namespace ScriptModuleMinecraft
Definition HashedString.h:5
Definition Potion.h:14
Definition ScriptPotions.h:26
MCAPI ScriptPotions(::ScriptModuleMinecraft::ScriptPotions const &)
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotions > _getHandle(::Scripting::WeakLifetimeScope &scope)
static MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType > > getDeliveryTypes(::Scripting::WeakLifetimeScope scope)
static MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType > > getEffectTypes(::Scripting::WeakLifetimeScope scope)
static MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType > > getPotionDeliveryType(::Scripting::WeakLifetimeScope scope, ::std::string const &potionTypeId)
static MCAPI ::Scripting::Result< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack >, ::ScriptModuleMinecraft::ScriptInvalidPotionDeliveryTypeError, ::ScriptModuleMinecraft::ScriptInvalidPotionEffectTypeError, ::Scripting::EngineError > resolve(::Scripting::WeakLifetimeScope scope, ::std::variant< ::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType > > &potionEffect, ::std::variant< ::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType > > &deliveryType)
static MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType > > getPotionEffectType(::Scripting::WeakLifetimeScope scope, ::std::string const &potionTypeId)
MCAPI void * $ctor(::ScriptModuleMinecraft::ScriptPotions &&)
static MCAPI ::Scripting::ClassBinding bind()
MCAPI ScriptPotions(::ScriptModuleMinecraft::ScriptPotions &&)
MCAPI void * $ctor(::ScriptModuleMinecraft::ScriptPotions const &)
MCAPI::ScriptModuleMinecraft::ScriptPotions & operator=(::ScriptModuleMinecraft::ScriptPotions &&)
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionEffectType > getOrCreatePotionEffectType(::gsl::not_null<::std::shared_ptr<::Potion const > > potion, ::Scripting::WeakLifetimeScope scope)
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPotionDeliveryType > getOrCreatePotionDeliveryType(::Potion::PotionType potionType, ::Scripting::WeakLifetimeScope scope)
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptInvalidPotionDeliveryTypeError.h:15
Definition ScriptInvalidPotionEffectTypeError.h:15
Definition EngineError.h:10
Definition Alias.h:14