LeviLamina
Loading...
Searching...
No Matches
MovingBlock.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/ActorBlockBase.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 BlockActor;
15class BlockPos;
16class Experiments;
19class ItemInstance;
21namespace BlockEvents { class BlockEntityFallOnEvent; }
22// clang-format on
23
24class MovingBlock : public ::ActorBlock {
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
29
30 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
31
32 virtual ::AABB const& getVisualShapeInWorld(
33 ::Block const&,
34 ::IConstBlockSource const& region,
35 ::BlockPos const& pos,
36 ::AABB& bufferAABB
37 ) const /*override*/;
38
39 virtual bool pushesUpFallingBlocks() const /*override*/;
40
41 virtual ::AABB getCollisionShape(
42 ::Block const&,
43 ::IConstBlockSource const& region,
44 ::BlockPos const& pos,
46 ) const /*override*/;
47
48 virtual void updateEntityAfterFallOn(::BlockPos const& pos, ::UpdateEntityAfterFallOnInterface& entity) const
49 /*override*/;
50
51 virtual bool isMovingBlock() const /*override*/;
52
53 virtual ~MovingBlock() /*override*/ = default;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent& eventData) const;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
66
67 MCFOLD ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
68
69 MCAPI ::AABB const& $getVisualShapeInWorld(
70 ::Block const&,
71 ::IConstBlockSource const& region,
72 ::BlockPos const& pos,
73 ::AABB& bufferAABB
74 ) const;
75
76 MCFOLD bool $pushesUpFallingBlocks() const;
77
78 MCAPI ::AABB $getCollisionShape(
79 ::Block const&,
80 ::IConstBlockSource const& region,
81 ::BlockPos const& pos,
83 ) const;
84
85 MCAPI void $updateEntityAfterFallOn(::BlockPos const& pos, ::UpdateEntityAfterFallOnInterface& entity) const;
86
87 MCFOLD bool $isMovingBlock() const;
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition AABB.h:18
Definition BlockActor.h:32
Definition BlockEntityFallOnEvent.h:16
Definition BlockPos.h:19
Definition Block.h:43
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
Definition MovingBlock.h:24
Definition optional_ref.h:10
Definition UpdateEntityAfterFallOnInterface.h:13