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