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/HandSlot.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class CompoundTag;
14class HashedString;
16class ItemDescriptor;
17class ItemStack;
18class ItemStackBase;
19class Vec3;
20struct Brightness;
22// clang-format on
23
24class BlockItem : public ::Item {
25public:
26 // prevent constructor by default
27 BlockItem();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
33
34 virtual bool isValidAuxValue(int auxValue) const /*override*/;
35
36 virtual ::std::string
37 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
38
39 virtual ::Brightness getLightEmission(int data) const /*override*/;
40
41 virtual bool isDestructive(int) const /*override*/;
42
43 virtual ::InteractionResult _useOn(
44 ::ItemStack& instance,
45 ::Actor& actor,
46 ::BlockPos pos,
47 uchar face,
48 ::HandSlot handSlot,
49 ::Vec3 const& clickPos
50 ) const /*override*/;
51
52 virtual bool _calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const
53 /*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 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
74
75 MCAPI bool $isValidAuxValue(int auxValue) const;
76
77 MCAPI ::std::string
78 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
79
80 MCAPI ::Brightness $getLightEmission(int data) const;
81
82 MCAPI bool $isDestructive(int) const;
83
84 MCAPI ::InteractionResult $_useOn(
85 ::ItemStack& instance,
86 ::Actor& actor,
87 ::BlockPos pos,
88 uchar face,
89 ::HandSlot handSlot,
90 ::Vec3 const& clickPos
91 ) const;
92
93 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const;
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Actor.h:113
static MCAPI void ** $vftable()
Definition BlockPos.h:17
Definition CompoundTag.h:18
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Vec3.h:10
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8