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 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI SlabBlockItem(::std::string const& name, int id, ::HashedString const& doubleSlabId);
46
47 MCAPI bool _canConvertToDoubleBlock(::ItemStackBase& instance, ::Actor& face, uchar& block, ::Block const&) const;
48
49 MCAPI void setDoubleSlabId(::HashedString const& doubleSlabId);
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:125
Definition BlockPos.h:21
Definition Block.h:69
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Vec3.h:10