Skip to content
LeviMC
English
AutoLightDark
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;
18namespace BlockEvents { class BlockEntityFallOnEvent; }
19// clang-format on
20
21class HoneyBlock : public ::BlockType {
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ::AABB getCollisionShape(
26 ::Block const&,
28 ::BlockPos const& pos,
30 ) const /*override*/;
31
32 virtual void onStandOn(::EntityContext& entity, ::BlockPos const& pos) const /*override*/;
33
34 virtual float getBounciness(::IConstBlockSource const&, ::BlockPos const&) const /*override*/;
35
36 virtual int getExtraRenderLayers() const /*override*/;
37
38 virtual ::AABB const& getVisualShape(::Block const&, ::AABB& bufferAABB) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent& eventData) const;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static void triggerSlidingDownEffects(::Actor& entity, ::BlockPos const& pos, ::Block const& honeyBlock);
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI ::AABB $getCollisionShape(
57 ::Block const&,
59 ::BlockPos const& pos,
61 ) const;
62
63 MCNAPI void $onStandOn(::EntityContext& entity, ::BlockPos const& pos) const;
64
65 MCNAPI float $getBounciness(::IConstBlockSource const&, ::BlockPos const&) const;
66
67 MCNAPI int $getExtraRenderLayers() const;
68
69 MCNAPI ::AABB const& $getVisualShape(::Block const&, ::AABB& bufferAABB) const;
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockEntityFallOnEvent.h:17
Definition BlockPos.h:14
Definition Block.h:42
Definition EntityContext.h:15
Definition GetCollisionShapeInterface.h:13
Definition HoneyBlock.h:21
MCAPI float $getBounciness(::IConstBlockSource const &, ::BlockPos const &) const
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void $onStandOn(::EntityContext &entity, ::BlockPos const &pos) const
MCAPI::AABB const & $getVisualShape(::Block const &, ::AABB &bufferAABB) const
MCAPI void onFallOn(::BlockEvents::BlockEntityFallOnEvent &eventData) const
MCAPI int $getExtraRenderLayers() const
static MCAPI void ** $vftable()
Definition IConstBlockSource.h:25
Definition optional_ref.h:10