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;
16class Experiments;
19namespace BlockEvents { class BlockEntityFallOnEvent; }
20// clang-format on
21
22class HoneyBlock : public ::BlockType {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
27
28 virtual ::AABB getCollisionShape(
29 ::Block const&,
31 ::BlockPos const& pos,
33 ) const /*override*/;
34
35 virtual void onStandOn(::EntityContext& entity, ::BlockPos const& pos) const /*override*/;
36
37 virtual int getExtraRenderLayers() const /*override*/;
38
39 virtual ::AABB const& getVisualShape(::Block const&, ::AABB& bufferAABB) const /*override*/;
40
41 virtual ~HoneyBlock() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent& eventData) const;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static void triggerSlidingDownEffects(::Actor& entity, ::BlockPos const& pos, ::Block const& honeyBlock);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
60
61 MCAPI ::AABB $getCollisionShape(
62 ::Block const&,
64 ::BlockPos const& pos,
66 ) const;
67
68 MCFOLD void $onStandOn(::EntityContext& entity, ::BlockPos const& pos) const;
69
70 MCFOLD int $getExtraRenderLayers() const;
71
72 MCAPI ::AABB const& $getVisualShape(::Block const&, ::AABB& bufferAABB) const;
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCAPI static void** $vftable();
81 // NOLINTEND
82};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockEntityFallOnEvent.h:16
Definition BlockPos.h:19
Definition Block.h:43
Definition EntityContext.h:16
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition HoneyBlock.h:22
Definition IConstBlockSource.h:25
Definition optional_ref.h:10