LeviLamina
Loading...
Searching...
No Matches
SlabBlockItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/item/BlockItem.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
15class ItemStack;
16class ItemStackBase;
17class Vec3;
18// clang-format on
19
20class SlabBlockItem : public ::BlockItem {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 48, ::HashedString> mDoubleSlabId;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 SlabBlockItem();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ::InteractionResult
35 _useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
36 /*override*/;
37
38 virtual bool _calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const
39 /*override*/;
40
41 virtual ~SlabBlockItem() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI SlabBlockItem(::std::string const& name, int id, ::HashedString const& doubleSlabId);
48
49 MCAPI bool _canConvertToDoubleBlock(::ItemStackBase& instance, ::Actor&, uchar& face, ::Block const& block) const;
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& doubleSlabId);
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI ::InteractionResult
62 $_useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
63
64 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCAPI static void** $vftable();
73 // NOLINTEND
74};
Definition Actor.h:106
Definition BlockPos.h:19
Definition Block.h:43
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Vec3.h:10