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 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 108
28 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
29
30 // vIndex: 60
31 virtual bool isValidAuxValue(int auxValue) const /*override*/;
32
33 // vIndex: 87
34 virtual ::std::string
35 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
36
37 // vIndex: 112
38 virtual ::Brightness getLightEmission(int data) const /*override*/;
39
40 // vIndex: 47
41 virtual bool isDestructive(int auxValue) const /*override*/;
42
43 // vIndex: 120
44 virtual ::InteractionResult
45 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
46 /*override*/;
47
48 // vIndex: 118
49 virtual bool _calculatePlacePos(::ItemStackBase& instance, ::Actor& entity, uchar& face, ::BlockPos& pos) const
50 /*override*/;
51
52 // vIndex: 0
53 virtual ~BlockItem() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI BlockItem(::std::string const& name, int id, ::HashedString const& blockName);
60
61 MCAPI void _displayHeightLimitErrorMessages(::Actor& actor, int y, bool displayClientSideOnly) const;
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& blockName);
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCFOLD void $dtor();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
80
81 MCAPI bool $isValidAuxValue(int auxValue) const;
82
83 MCAPI ::std::string
84 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
85
86 MCAPI ::Brightness $getLightEmission(int data) const;
87
88 MCAPI bool $isDestructive(int auxValue) const;
89
90 MCAPI ::InteractionResult
91 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
92
93 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& entity, uchar& face, ::BlockPos& pos) const;
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCAPI static void** $vftable();
100 // NOLINTEND
101};
Definition Actor.h:104
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