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 // prevent constructor by default
25 MovingBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
31
32 virtual ::AABB const& getVisualShapeInWorld(
33 ::Block const& region,
34 ::IConstBlockSource const& pos,
35 ::BlockPos const& bufferAABB,
36 ::AABB&
37 ) const /*override*/;
38
39 virtual bool pushesUpFallingBlocks() const /*override*/;
40
41 virtual ::AABB getCollisionShape(
42 ::Block const& region,
43 ::IConstBlockSource const& pos,
44 ::BlockPos const&,
46 ) const /*override*/;
47
48 virtual float getBounciness(::IConstBlockSource const& region, ::BlockPos const& pos) const /*override*/;
49
50 virtual bool isMovingBlock() const /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI MovingBlock(::std::string const& nameId, int id);
57
58 MCAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent& eventData) const;
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(::std::string const& nameId, int id);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCFOLD ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
71
72 MCAPI ::AABB const& $getVisualShapeInWorld(
73 ::Block const& region,
74 ::IConstBlockSource const& pos,
75 ::BlockPos const& bufferAABB,
76 ::AABB&
77 ) const;
78
79 MCFOLD bool $pushesUpFallingBlocks() const;
80
81 MCAPI ::AABB $getCollisionShape(
82 ::Block const& region,
83 ::IConstBlockSource const& pos,
84 ::BlockPos const&,
86 ) const;
87
88 MCAPI float $getBounciness(::IConstBlockSource const& region, ::BlockPos const& pos) const;
89
90 MCFOLD bool $isMovingBlock() const;
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCAPI static void** $vftable();
99 // NOLINTEND
100};
Definition AABB.h:18
Definition BlockActor.h:30
Definition BlockEntityFallOnEvent.h:20
Definition BlockPos.h:21
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:15
Definition optional_ref.h:10