Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MossBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/FertilizerType.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15// clang-format on
16
17class MossBlock : public ::BlockType {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mOnFertilizeFeature;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 MossBlock();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual bool
32 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
33 /*override*/;
34
35 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
36 /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI MossBlock(::std::string const& nameId, int id, ::std::optional<::std::string> onFertilizeFeature);
43 // NOLINTEND
44
45public:
46 // constructor thunks
47 // NOLINTBEGIN
48 MCNAPI void* $ctor(::std::string const& nameId, int id, ::std::optional<::std::string> onFertilizeFeature);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCNAPI bool
55 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
56
57 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
58
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
static MCAPI void ** $vftable()
MCAPI MossBlock(::std::string const &nameId, int id, ::std::optional<::std::string > onFertilizeFeature)
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
MCAPI void * $ctor(::std::string const &nameId, int id, ::std::optional<::std::string > onFertilizeFeature)
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const