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;
11class CompoundTag;
12class ListTag;
15// clang-format on
16
18public:
19 // static functions
20 // NOLINTBEGIN
21 MCAPI static ::AttributeInstance*
22 _legacyGetInstance(::BaseAttributeMap& attributes, ::std::string const& attributeName);
23
24 MCAPI static ::std::string const& _legacyGetName(::std::string const& attributeName);
25
26 MCAPI static void
27 _loadAttribute(::AttributeInstance& instance, ::CompoundTag const* tag, ::AttributeModificationContext& context);
28
29 MCAPI static ::std::unique_ptr<::CompoundTag> _saveAttribute(::AttributeInstance const& instance);
30
31 MCAPI static ::std::unique_ptr<::CompoundTag> _saveAttributeModifier(::AttributeModifier const& modifier);
32
33 MCAPI static bool checkIsDeprecated(::std::string& name);
34
35 MCAPI static ::TemporalAttributeBuff loadAttributeBuff(::CompoundTag const& tag);
36
37 MCAPI static ::std::shared_ptr<::AttributeModifier> loadAttributeModifier(::CompoundTag const& tag);
38
39 MCAPI static void loadAttributes(::BaseAttributeMap* attributes, ::ListTag const* list);
40 // NOLINTEND
41
42public:
43 // static variables
44 // NOLINTBEGIN
45 MCAPI static ::Attribute const& ABSORPTION();
46
47 MCAPI static ::Attribute const& ATTACK_DAMAGE();
48
49 MCAPI static ::Attribute const& FOLLOW_RANGE();
50
51 MCAPI static ::Attribute const& HEALTH();
52
53 MCAPI static ::Attribute const& JUMP_STRENGTH();
54
55 MCAPI static ::Attribute const& KNOCKBACK_RESISTANCE();
56
57 MCAPI static ::Attribute const& LAVA_MOVEMENT_SPEED();
58
59 MCAPI static ::Attribute const& LUCK();
60
61 MCAPI static ::Attribute const& MOVEMENT_SPEED();
62
63 MCAPI static ::Attribute const& UNDERWATER_MOVEMENT_SPEED();
64 // NOLINTEND
65};
Definition AttributeInstance.h:16
Definition AttributeModifier.h:14
Definition Attribute.h:13
Definition BaseAttributeMap.h:16
Definition CompoundTag.h:13
Definition ListTag.h:12
Definition SharedAttributes.h:17
Definition TemporalAttributeBuff.h:14
Definition AttributeModificationContext.h:10
Definition context.h:5