LeviLamina
Loading...
Searching...
No Matches
DecoratedPotBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockSupportType.h"
7#include "mc/world/level/block/FaceDirectionalActorBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockActor;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
18class ItemInstance;
19class ItemStack;
20class Player;
21// clang-format on
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 90
28 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
29
30 // vIndex: 89
31 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
32 /*override*/;
33
34 // vIndex: 132
35 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 // vIndex: 138
38 virtual bool isInteractiveBlock() const /*override*/;
39
40 // vIndex: 139
41 virtual bool use(::Player& player, ::BlockPos const& pos, uchar) const /*override*/;
42
43 // vIndex: 17
44 virtual void onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const&) const /*override*/;
45
46 // vIndex: 23
47 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
48
49 // vIndex: 57
50 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
51 /*override*/;
52
53 // vIndex: 105
54 virtual bool hasComparatorSignal() const /*override*/;
55
56 // vIndex: 106
57 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
58 /*override*/;
59
60 // vIndex: 0
61 virtual ~DecoratedPotBlock() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::std::unique_ptr<::CompoundTag>
68 getItemInstanceUserData(::gsl::not_null<::DecoratedPotBlockActor const*> pot);
69
70 MCAPI static ::std::vector<::ItemStack> getSherdItems(::DecoratedPotBlockActor const& decoratedPotBlockActor);
71
72 MCAPI static bool isShatteringItem(::ItemStack const& item);
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) const;
85
86 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
87
88 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
89
90 MCFOLD bool $isInteractiveBlock() const;
91
92 MCAPI bool $use(::Player& player, ::BlockPos const& pos, uchar) const;
93
94 MCAPI void $onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const&) const;
95
96 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
97
98 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
99
100 MCFOLD bool $hasComparatorSignal() const;
101
102 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCAPI static void** $vftable();
109 // NOLINTEND
110};
Definition Actor.h:104
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CompoundTag.h:13
Definition DecoratedPotBlockActor.h:23
Definition DecoratedPotBlock.h:23
Definition FaceDirectionalActorBlock.h:18
Definition ItemInstance.h:16
Definition ItemStack.h:25
Definition Player.h:119