LeviLamina
Loading...
Searching...
No Matches
DurabilityItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/shared_types/IntRange.h"
7#include "mc/world/item/components/NetworkedItemComponent.h"
8#include "mc/world/level/storage/AllExperiments.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class SemVersion;
14struct IntRange;
15namespace cereal { struct ReflectionCtx; }
16// clang-format on
17
18class DurabilityItemComponent : public ::NetworkedItemComponent<::DurabilityItemComponent> {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 4, int> mMaxDamage;
23 ::ll::TypedStorage<4, 8, ::SharedTypes::IntRange> mDamageChance;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 DurabilityItemComponent();
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI explicit DurabilityItemComponent(int maxDamage);
34
35 MCAPI ::IntRange getDamageChanceRange() const;
36
37 MCFOLD int getMaxDamage() const;
38
39 MCFOLD void setMaxDamage(int maxDamage);
40 // NOLINTEND
41
42public:
43 // static functions
44 // NOLINTBEGIN
45 MCAPI static void bindType(
47 ::std::vector<::AllExperiments> const& requiredToggles,
48 ::std::optional<::SemVersion> releasedMinFormatVersion
49 );
50
51 MCAPI static ::HashedString const& getIdentifier();
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(int maxDamage);
58 // NOLINTEND
59
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65};
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
Definition IntRange.h:11
Definition ReflectionCtx.h:11
Definition ctx.h:5