LeviLamina
Loading...
Searching...
No Matches
BoostableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class ItemStack;
9class Player;
10namespace mce { class UUID; }
11// clang-format on
12
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<1, 1, bool> mIsBoosting;
18 ::ll::TypedStorage<4, 4, int> mBoostTime;
19 ::ll::TypedStorage<4, 4, int> mBoostTimeTotal;
20 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
21 // NOLINTEND
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI bool _canUseItem(::Actor const& actor, ::ItemStack const& item);
27
28 MCAPI void _useItem(::Actor& actor, ::ItemStack& item, ::Player& player);
29
30 MCAPI void boost(::Actor& actor);
31
32 MCFOLD int getBoostTime() const;
33
34 MCFOLD int getBoostTimeTotal() const;
35
36 MCFOLD bool getIsBoosting() const;
37
38 MCAPI bool itemUseText(::Actor const& actor, ::ItemStack const& item, ::std::string& text);
39
40 MCAPI bool onItemInteract(::Actor& actor, ::ItemStack& item, ::Player& player);
41
42 MCFOLD void setBoostTime(int boostTime);
43
44 MCFOLD void setIsBoosting(bool isBoosting);
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static ::mce::UUID getSpeedModifierUUID();
51 // NOLINTEND
52
53public:
54 // static variables
55 // NOLINTBEGIN
56 MCAPI static ::mce::UUID const& SPEED_MODIFIER_BOOSTING_UUID();
57 // NOLINTEND
58};
Definition Actor.h:125
Definition BoostableComponent.h:13
Definition ItemStack.h:35
Definition Player.h:137
Definition UUID.h:7