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
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 120
35 virtual ::InteractionResult
36 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
37 /*override*/;
38
39 // vIndex: 118
40 virtual bool _calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const
41 /*override*/;
42
43 // vIndex: 0
44 virtual ~SlabBlockItem() /*override*/ = default;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI SlabBlockItem(::std::string const& name, int id, ::HashedString const& doubleSlabId);
51
52 MCAPI bool _canConvertToDoubleBlock(::ItemStackBase& instance, ::Actor&, uchar& face, ::Block const& block) const;
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::std::string const& name, int id, ::HashedString const& doubleSlabId);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::InteractionResult
65 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
66
67 MCAPI bool $_calculatePlacePos(::ItemStackBase& instance, ::Actor& actor, uchar& face, ::BlockPos& pos) const;
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition Actor.h:103
Definition BlockItem.h:23
Definition BlockPos.h:18
Definition Block.h:38
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition SlabBlockItem.h:20
static MCAPI void ** $vftable()
Definition Vec3.h:10