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