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