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> _saveAttributeModifier(::AttributeModifier const& modifier);
33
34 MCAPI static bool checkIsDeprecated(::std::string& name);
35
36 MCAPI static ::TemporalAttributeBuff loadAttributeBuff(::CompoundTag const& tag);
37
38 MCAPI static ::std::shared_ptr<::AttributeModifier> loadAttributeModifier(::CompoundTag const& tag);
39
40 MCAPI static void loadAttributes(::BaseAttributeMap* attributes, ::ListTag const* list);
41 // NOLINTEND
42
43public:
44 // static variables
45 // NOLINTBEGIN
46 MCAPI static ::Attribute const& ABSORPTION();
47
48 MCAPI static ::Attribute const& ATTACK_DAMAGE();
49
50 MCAPI static ::Attribute const& FOLLOW_RANGE();
51
52 MCAPI static ::Attribute const& HEALTH();
53
54 MCAPI static ::Attribute const& JUMP_STRENGTH();
55
56 MCAPI static ::Attribute const& KNOCKBACK_RESISTANCE();
57
58 MCAPI static ::Attribute const& LAVA_MOVEMENT_SPEED();
59
60 MCAPI static ::Attribute const& LUCK();
61
62 MCAPI static ::Attribute const& MOVEMENT_SPEED();
63
64 MCAPI static ::Attribute const& UNDERWATER_MOVEMENT_SPEED();
65 // NOLINTEND
66};
Definition AttributeInstanceRef.h:13
Definition AttributeInstance.h:16
Definition AttributeModifier.h:10
Definition Attribute.h:9
Definition BaseAttributeMap.h:19
Definition CompoundTag.h:23
Definition ListTag.h:20
Definition SharedAttributes.h:18
Definition TemporalAttributeBuff.h:14
Definition AttributeModificationContext.h:10
Definition context.h:5