Skip to content
LeviMC
English
AutoLightDark
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#include "mc/world/item/HandSlot.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
16class ItemStack;
17class ItemStackBase;
18class Vec3;
19// clang-format on
20
21class SlabBlockItem : public ::BlockItem {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 48, ::HashedString> mDoubleSlabId;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 SlabBlockItem();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::InteractionResult _useOn(
36 ::ItemStack& instance,
37 ::Actor& actor,
38 ::BlockPos pos,
39 uchar face,
40 ::HandSlot handSlot,
41 ::Vec3 const& clickPos
42 ) const /*override*/;
43
44 virtual bool
45 _calculatePlacePos(::ItemStackBase const& instance, ::Actor const& actor, uchar& face, ::BlockPos& pos) const
46 /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCNAPI SlabBlockItem(::std::string const& name, int id, ::HashedString const& doubleSlabId);
53
54 MCNAPI bool
55 _canConvertToDoubleBlock(::ItemStackBase const& instance, ::Actor const&, uchar& face, ::Block const& block) const;
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCNAPI void* $ctor(::std::string const& name, int id, ::HashedString const& doubleSlabId);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCNAPI ::InteractionResult $_useOn(
68 ::ItemStack& instance,
69 ::Actor& actor,
70 ::BlockPos pos,
71 uchar face,
72 ::HandSlot handSlot,
73 ::Vec3 const& clickPos
74 ) const;
75
76 MCNAPI bool
77 $_calculatePlacePos(::ItemStackBase const& instance, ::Actor const& actor, uchar& face, ::BlockPos& pos) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Actor.h:116
Definition BlockPos.h:14
Definition Block.h:42
Definition HashedString.h:5
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
MCAPI void * $ctor(::std::string const &name, int id, ::HashedString const &doubleSlabId)
MCAPI bool _canConvertToDoubleBlock(::ItemStackBase const &instance, ::Actor const &, uchar &face, ::Block const &block) const
MCAPI bool $_calculatePlacePos(::ItemStackBase const &instance, ::Actor const &actor, uchar &face, ::BlockPos &pos) const
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &actor, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
MCAPI SlabBlockItem(::std::string const &name, int id, ::HashedString const &doubleSlabId)
static MCAPI void ** $vftable()
Definition Vec3.h:10