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;
14namespace SharedTypes { struct 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 // virtual functions
28 // NOLINTBEGIN
29 virtual ~DurabilityItemComponent() /*override*/ = default;
30 // NOLINTEND
31
32public:
33 // static functions
34 // NOLINTBEGIN
35 MCAPI static void bindType(
37 ::std::vector<::AllExperiments> const& requiredToggles,
38 ::std::optional<::SemVersion> releasedMinFormatVersion
39 );
40
41 MCAPI static ::HashedString const& getIdentifier();
42 // NOLINTEND
43
44public:
45 // vftables
46 // NOLINTBEGIN
47 MCNAPI static void** $vftable();
48 // NOLINTEND
49};
Definition DurabilityItemComponent.h:18
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
Definition IntRange.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5