LeviLamina
Loading...
Searching...
No Matches
SharedAttributes.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Attribute;
12class CompoundTag;
13class ListTag;
16// clang-format on
17
19public:
20 // static functions
21 // NOLINTBEGIN
22 MCAPI static ::AttributeInstanceRef
23 _legacyGetInstance(::BaseAttributeMap& attributes, ::std::string const& attributeName);
24
25 MCAPI static ::std::string const& _legacyGetName(::std::string const& attributeName);
26
27 MCAPI static void
28 _loadAttribute(::AttributeInstance& instance, ::CompoundTag const* tag, ::AttributeModificationContext& context);
29
30 MCAPI static ::std::unique_ptr<::CompoundTag> _saveAttribute(::AttributeInstance const& instance);
31
32 MCAPI static ::std::unique_ptr<::CompoundTag> _saveAttributeBuff(::TemporalAttributeBuff const& buff);
33
34 MCAPI static ::std::unique_ptr<::CompoundTag> _saveAttributeModifier(::AttributeModifier const& modifier);
35
36 MCAPI static bool checkIsDeprecated(::std::string& name);
37
38 MCAPI static ::TemporalAttributeBuff loadAttributeBuff(::CompoundTag const& tag);
39
40 MCAPI static ::std::shared_ptr<::AttributeModifier> loadAttributeModifier(::CompoundTag const& tag);
41
42 MCAPI static void loadAttributes(::BaseAttributeMap* attributes, ::ListTag const* list);
43
44 MCAPI static ::std::unique_ptr<::ListTag> saveAttributes(::BaseAttributeMap const* attributes);
45 // NOLINTEND
46
47public:
48 // static variables
49 // NOLINTBEGIN
50 MCAPI static ::Attribute const& ABSORPTION();
51
52 MCAPI static ::Attribute const& AIR_DRAG_MODIFIER();
53
54 MCAPI static ::Attribute const& ATTACK_DAMAGE();
55
56 MCAPI static ::Attribute const& BOUNCINESS();
57
58 MCAPI static ::Attribute const& FOLLOW_RANGE();
59
60 MCAPI static ::Attribute const& FRICTION_MODIFIER();
61
62 MCAPI static ::Attribute const& HEALTH();
63
64 MCAPI static ::Attribute const& JUMP_STRENGTH();
65
66 MCAPI static ::Attribute const& KNOCKBACK_RESISTANCE();
67
68 MCAPI static ::Attribute const& LAVA_MOVEMENT_SPEED();
69
70 MCAPI static ::Attribute const& LUCK();
71
72 MCAPI static ::Attribute const& MOVEMENT_SPEED();
73
74 MCAPI static ::Attribute const& UNDERWATER_MOVEMENT_SPEED();
75 // NOLINTEND
76};
Definition AttributeInstanceRef.h:13
Definition AttributeInstance.h:17
Definition AttributeModifier.h:10
Definition Attribute.h:9
Definition BaseAttributeMap.h:21
Definition CompoundTag.h:23
Definition ListTag.h:21
Definition SharedAttributes.h:18
Definition TemporalAttributeBuff.h:15
Definition AttributeModificationContext.h:10
Definition context.h:5