Skip to content
LeviMC
English
AutoLightDark
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;
13// clang-format on
14
16public:
17 // static functions
18 // NOLINTBEGIN
19 MCNAPI static bool _isDefaultAttribute(::AttributeInstance const& instance, ::AttributeInstance const& defaults);
20
21 MCNAPI static ::AttributeInstanceRef
22 _legacyGetInstance(::BaseAttributeMap& attributes, ::std::string const& attributeName);
23
24 MCNAPI static ::std::string const& _legacyGetName(::std::string const& attributeName);
25
26 MCNAPI static ::std::unique_ptr<::CompoundTag> _saveAttribute(::AttributeInstance const& instance);
27
28 MCNAPI static void
29 loadAttributes(::BaseAttributeMap* attributes, ::ListTag const* list, ::BaseAttributeMap const* defaults);
30
31 MCNAPI static ::std::unique_ptr<::ListTag>
32 saveAttributes(::BaseAttributeMap const* attributes, ::BaseAttributeMap const* defaults);
33 // NOLINTEND
34
35public:
36 // static variables
37 // NOLINTBEGIN
38 MCAPI static ::Attribute const& ABSORPTION();
39
40 MCNAPI static ::Attribute const& AIR_DRAG_MODIFIER();
41
42 MCAPI static ::Attribute const& ATTACK_DAMAGE();
43
44 MCNAPI static ::Attribute const& BOUNCINESS();
45
46 MCAPI static ::Attribute const& FOLLOW_RANGE();
47
48 MCNAPI static ::Attribute const& FRICTION_MODIFIER();
49
50 MCAPI static ::Attribute const& HEALTH();
51
52 MCAPI static ::Attribute const& JUMP_STRENGTH();
53
54 MCAPI static ::Attribute const& KNOCKBACK_RESISTANCE();
55
56 MCAPI static ::Attribute const& LAVA_MOVEMENT_SPEED();
57
58 MCAPI static ::Attribute const& LUCK();
59
60 MCAPI static ::Attribute const& MOVEMENT_SPEED();
61
62 MCAPI static ::Attribute const& UNDERWATER_MOVEMENT_SPEED();
63 // NOLINTEND
64};
Definition AttributeInstanceRef.h:13
Definition AttributeInstance.h:17
Definition Attribute.h:9
Definition BaseAttributeMap.h:21
Definition CompoundTag.h:18
Definition ListTag.h:19
Definition SharedAttributes.h:15
static MCAPI bool _isDefaultAttribute(::AttributeInstance const &instance, ::AttributeInstance const &defaults)
static MCAPI ::Attribute const & FRICTION_MODIFIER()
static MCAPI ::std::unique_ptr<::CompoundTag > _saveAttribute(::AttributeInstance const &instance)
static MCAPI ::AttributeInstanceRef _legacyGetInstance(::BaseAttributeMap &attributes, ::std::string const &attributeName)
static MCAPI ::std::unique_ptr<::ListTag > saveAttributes(::BaseAttributeMap const *attributes, ::BaseAttributeMap const *defaults)
static MCAPI ::std::string const & _legacyGetName(::std::string const &attributeName)
static MCAPI void loadAttributes(::BaseAttributeMap *attributes, ::ListTag const *list, ::BaseAttributeMap const *defaults)
static MCAPI ::Attribute const & BOUNCINESS()
static MCAPI ::Attribute const & AIR_DRAG_MODIFIER()