LeviLamina
Loading...
Searching...
No Matches
HoneyBlock.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/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class EntityContext;
18class Material;
19namespace BlockEvents { class BlockEntityFallOnEvent; }
20// clang-format on
21
22class HoneyBlock : public ::BlockType {
23public:
24 // prevent constructor by default
25 HoneyBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::AABB getCollisionShape(
31 ::Block const& pos,
33 ::BlockPos const&,
35 ) const /*override*/;
36
37 virtual void onStandOn(::EntityContext& entity, ::BlockPos const&) const /*override*/;
38
39 virtual float getBounciness(::IConstBlockSource const&, ::BlockPos const&) const /*override*/;
40
41 virtual int getExtraRenderLayers() const /*override*/;
42
43 virtual ::AABB const& getVisualShape(::Block const& bufferAABB, ::AABB&) const /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI HoneyBlock(::std::string const& nameId, int id, ::Material const& material);
50
51 MCAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent& eventData) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void triggerSlidingDownEffects(::Actor& entity, ::BlockPos const& pos, ::Block const& honeyBlock);
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::std::string const& nameId, int id, ::Material const& material);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI ::AABB $getCollisionShape(
70 ::Block const& pos,
72 ::BlockPos const&,
74 ) const;
75
76 MCFOLD void $onStandOn(::EntityContext& entity, ::BlockPos const&) const;
77
78 MCFOLD float $getBounciness(::IConstBlockSource const&, ::BlockPos const&) const;
79
80 MCFOLD int $getExtraRenderLayers() const;
81
82 MCAPI ::AABB const& $getVisualShape(::Block const& bufferAABB, ::AABB&) const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockEntityFallOnEvent.h:20
Definition BlockPos.h:21
Definition Block.h:69
Definition EntityContext.h:17
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Material.h:8
Definition optional_ref.h:10