LeviLamina
Loading...
Searching...
No Matches
ShulkerBoxBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockSupportType.h"
8#include "mc/world/level/block/ChestBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class BaseGameVersion;
15class Block;
16class BlockPos;
17class BlockSource;
18class Container;
21class Player;
22class Vec3;
23// clang-format on
24
25class ShulkerBoxBlock : public ::ChestBlock {
26public:
27 // prevent constructor by default
28 ShulkerBoxBlock();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
34 /*override*/;
35
36 virtual ::Block const&
37 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
38 /*override*/;
39
40 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
41 /*override*/;
42
43 virtual ::AABB getCollisionShape(
44 ::Block const& block,
45 ::IConstBlockSource const& region,
46 ::BlockPos const& pos,
48 ) const /*override*/;
49
50 virtual ::AABB const& getOutline(
51 ::Block const& block,
52 ::IConstBlockSource const& region,
53 ::BlockPos const& pos,
54 ::AABB& bufferValue
55 ) const /*override*/;
56
57 virtual bool breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const /*override*/;
58
59 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI ShulkerBoxBlock(::std::string const& nameId, int id);
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static void _onSetupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos);
72 // NOLINTEND
73
74public:
75 // static variables
76 // NOLINTBEGIN
77 MCAPI static ::BaseGameVersion const& SHULKER_BOX_DOESNT_BREAK_FALLING_BLOCK_VERSION();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(::std::string const& nameId, int id);
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
90
91 MCAPI ::Block const& $getPlacementBlock(
92 ::Actor const& by,
93 ::BlockPos const& pos,
94 uchar face,
95 ::Vec3 const& clickPos,
96 int itemValue
97 ) const;
98
99 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
100
101 MCAPI ::AABB $getCollisionShape(
102 ::Block const& block,
103 ::IConstBlockSource const& region,
104 ::BlockPos const& pos,
106 ) const;
107
108 MCAPI ::AABB const& $getOutline(
109 ::Block const& block,
110 ::IConstBlockSource const& region,
111 ::BlockPos const& pos,
112 ::AABB& bufferValue
113 ) const;
114
115 MCAPI bool $breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const;
116
117 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
118
119
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCAPI static void** $vftable();
126 // NOLINTEND
127};
Definition AABB.h:18
Definition Actor.h:125
Definition BaseGameVersion.h:13
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Container.h:34
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Player.h:137
Definition Vec3.h:10
Definition optional_ref.h:10