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 cereal { struct ReflectionCtx; }
15// clang-format on
16
17class DurabilityItemComponent : public ::NetworkedItemComponent<::DurabilityItemComponent> {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mMaxDamage;
22 ::ll::TypedStorage<4, 8, ::SharedTypes::IntRange> mDamageChance;
23 // NOLINTEND
24
25public:
26 // static functions
27 // NOLINTBEGIN
28 MCAPI static void bindType(
30 ::std::vector<::AllExperiments> const& requiredToggles,
31 ::std::optional<::SemVersion> releasedMinFormatVersion
32 );
33
34 MCAPI static ::HashedString const& getIdentifier();
35 // NOLINTEND
36
37public:
38 // vftables
39 // NOLINTBEGIN
40 MCNAPI static void** $vftable();
41 // NOLINTEND
42};
Definition DurabilityItemComponent.h:17
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5