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) 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& actor, uchar& face, ::BlockPos& pos) const
47 /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI BlockItem(::std::string const& name, int id, ::HashedString const& blockName);
54
55 MCAPI void _displayHeightLimitErrorMessages(::Actor& actor, int y, bool displayClientSideOnly) const;
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& blockName);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
68
69 MCAPI bool $isValidAuxValue(int auxValue) const;
70
71 MCAPI ::std::string
72 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
73
74 MCAPI ::Brightness $getLightEmission(int data) const;
75
76 MCAPI bool $isDestructive(int) const;
77
78 MCAPI ::InteractionResult
79 $_useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
80
81 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const;
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCAPI static void** $vftable();
90 // NOLINTEND
91};
Definition Actor.h:125
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Vec3.h:10
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8