LeviLamina
Loading...
Searching...
No Matches
BlockItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class CompoundTag;
13class HashedString;
15class ItemDescriptor;
16class ItemStack;
17class ItemStackBase;
18class Vec3;
19struct Brightness;
21// clang-format on
22
23class BlockItem : public ::Item {
24public:
25 // prevent constructor by default
26 BlockItem();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 108
32 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
33
34 // vIndex: 60
35 virtual bool isValidAuxValue(int auxValue) const /*override*/;
36
37 // vIndex: 87
38 virtual ::std::string
39 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
40
41 // vIndex: 112
42 virtual ::Brightness getLightEmission(int data) const /*override*/;
43
44 // vIndex: 47
45 virtual bool isDestructive(int auxValue) const /*override*/;
46
47 // vIndex: 120
48 virtual ::InteractionResult
49 _useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
50 /*override*/;
51
52 // vIndex: 118
53 virtual bool _calculatePlacePos(::ItemStackBase& instance, ::Actor& entity, uchar& face, ::BlockPos& pos) const
54 /*override*/;
55
56 // vIndex: 0
57 virtual ~BlockItem() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI BlockItem(::std::string const& name, int id, ::HashedString const& blockName);
64
65 MCAPI void _displayHeightLimitErrorMessages(::Actor& actor, int y, bool displayClientSideOnly) const;
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& blockName);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCFOLD void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
84
85 MCAPI bool $isValidAuxValue(int auxValue) const;
86
87 MCAPI ::std::string
88 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
89
90 MCAPI ::Brightness $getLightEmission(int data) const;
91
92 MCAPI bool $isDestructive(int auxValue) const;
93
94 MCAPI ::InteractionResult
95 $_useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
96
97 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& entity, uchar& face, ::BlockPos& pos) const;
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftable();
104 // NOLINTEND
105};
Definition Actor.h:103
Definition BlockItem.h:23
Definition BlockPos.h:18
Definition CompoundTag.h:13
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Vec3.h:10
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8