Skip to content
LeviMC
English
AutoLightDark
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
53 _calculatePlacePos(::ItemStackBase const& instance, ::Actor const& actor, uchar& face, ::BlockPos& pos) const
54 /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI BlockItem(::std::string const& name, int id, ::HashedString const& blockName);
61
62 MCNAPI void _displayHeightLimitErrorMessages(::Actor& actor, int y, bool displayClientSideOnly) const;
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& blockName);
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
75
76 MCAPI bool $isValidAuxValue(int auxValue) const;
77
78 MCAPI ::std::string
79 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
80
81 MCAPI ::Brightness $getLightEmission(int data) const;
82
83 MCAPI bool $isDestructive(int) const;
84
85 MCAPI ::InteractionResult $_useOn(
86 ::ItemStack& instance,
87 ::Actor& actor,
88 ::BlockPos pos,
89 uchar face,
90 ::HandSlot handSlot,
91 ::Vec3 const& clickPos
92 ) const;
93
94 MCAPI bool
95 $_calculatePlacePos(::ItemStackBase const& instance, ::Actor const& actor, uchar& face, ::BlockPos& pos) const;
96
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
Definition Actor.h:116
MCAPI void _displayHeightLimitErrorMessages(::Actor &actor, int y, bool displayClientSideOnly) const
static MCAPI void ** $vftable()
Definition BlockPos.h:14
Definition CompoundTag.h:18
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Vec3.h:10
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8