Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PaleHangingMossBlock.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/item/FertilizerType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
19class Vec3;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class PaleHangingMossBlock : public ::BlockType {
25public:
26 // prevent constructor by default
27 PaleHangingMossBlock();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::Block const&
33 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
34 /*override*/;
35
36 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
37
38 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
39
40 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
41 /*override*/;
42
43 virtual ::AABB getCollisionShape(
44 ::Block const&,
46 ::BlockPos const&,
48 ) const /*override*/;
49
50 virtual ::AABB const&
51 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
52 /*override*/;
53
54 virtual int getVariant(::Block const& block) const /*override*/;
55
56 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
57 /*override*/;
58
59 virtual bool
60 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
61 /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCNAPI PaleHangingMossBlock(::std::string const& nameId, int id);
68
69 MCNAPI void _onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
70
71 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCNAPI void* $ctor(::std::string const& nameId, int id);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::Block const& $getPlacementBlock(
84 ::Actor const& by,
85 ::BlockPos const& pos,
86 uchar face,
87 ::Vec3 const& clickPos,
88 int itemValue
89 ) const;
90
91 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
92
93 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
94
95 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
96
97 MCNAPI ::AABB $getCollisionShape(
98 ::Block const&,
100 ::BlockPos const&,
102 ) const;
103
104 MCNAPI ::AABB const&
105 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
106
107 MCNAPI int $getVariant(::Block const& block) const;
108
109 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
110
111 MCNAPI bool
112 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
113
114
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI::AABB const & $getOutline(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI int $getVariant(::Block const &block) const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI void * $ctor(::std::string const &nameId, int id)
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
static MCAPI void ** $vftable()
MCAPI void _onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const
MCAPI PaleHangingMossBlock(::std::string const &nameId, int id)
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
Definition Vec3.h:10
Definition optional_ref.h:10