LeviLamina
Loading...
Searching...
No Matches
EndPortalFrameBlock.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/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Block;
14class BlockPos;
15class BlockSource;
18namespace BlockEvents { class BlockPlayerInteractEvent; }
19// clang-format on
20
21class EndPortalFrameBlock : public ::BlockType {
22public:
23 // prevent constructor by default
24 EndPortalFrameBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual void addAABBs(
30 ::Block const& block,
31 ::IConstBlockSource const& region,
32 ::BlockPos const& pos,
33 ::AABB const* intersectTestBox,
34 ::std::vector<::AABB>& inoutBoxes
35 ) const /*override*/;
36
37 virtual bool addCollisionShapes(
38 ::Block const& block,
39 ::IConstBlockSource const& region,
40 ::BlockPos const& pos,
41 ::AABB const* intersectTestBox,
42 ::std::vector<::AABB>& inoutBoxes,
44 ) const /*override*/;
45
46 virtual bool isInteractiveBlock() const /*override*/;
47
48 virtual bool hasComparatorSignal() const /*override*/;
49
50 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const&, uchar) const
51 /*override*/;
52
53 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
54
55 virtual bool canProvideSupport(::Block const& face, uchar, ::BlockSupportType) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI EndPortalFrameBlock(::std::string const& nameId, int id);
62
63 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static void createPortal(::BlockSource& region, ::BlockPos const& origin);
70
71 MCAPI static void removePortal(::BlockSource& region, ::BlockPos const& origin);
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::std::string const& nameId, int id);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $addAABBs(
84 ::Block const& block,
85 ::IConstBlockSource const& region,
86 ::BlockPos const& pos,
87 ::AABB const* intersectTestBox,
88 ::std::vector<::AABB>& inoutBoxes
89 ) const;
90
91 MCFOLD bool $addCollisionShapes(
92 ::Block const& block,
93 ::IConstBlockSource const& region,
94 ::BlockPos const& pos,
95 ::AABB const* intersectTestBox,
96 ::std::vector<::AABB>& inoutBoxes,
98 ) const;
99
100 MCFOLD bool $isInteractiveBlock() const;
101
102 MCFOLD bool $hasComparatorSignal() const;
103
104 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const&, uchar) const;
105
106 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
107
108 MCFOLD bool $canProvideSupport(::Block const& face, uchar, ::BlockSupportType) const;
109
110
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCAPI static void** $vftable();
117 // NOLINTEND
118};
Definition AABB.h:18
Definition BlockPlayerInteractEvent.h:20
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition optional_ref.h:10