LeviLamina
Loading...
Searching...
No Matches
SeedItemComponentLegacy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/molang/MolangVersion.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockDescriptor;
13class BlockPos;
14class CompoundTag;
15class Item;
16class ItemStack;
17class Vec3;
18namespace Json { class Value; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::Item&> mOwner;
26 ::ll::TypedStorage<8, 8, ::Block const*> mResult;
27 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mTargetLandBlocks;
28 ::ll::TypedStorage<1, 1, bool> mPlantAtAnyVisibleSolidSurface;
29 ::ll::TypedStorage<1, 1, bool> mIsPlanting;
30 ::ll::TypedStorage<1, 1, uchar> mFaceToPlantAt;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
43
44 MCAPI bool init(::Json::Value const& data, ::MolangVersion molangVersion);
45
46 MCAPI bool
47 useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos const& blockPos, uchar face, ::Vec3 const& clickPos);
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::Json::Value initializeFromNetwork(::CompoundTag const& tag);
54 // NOLINTEND
55};
Definition Actor.h:102
Definition BlockDescriptor.h:20
Definition BlockPos.h:17
Definition Block.h:37
Definition CompoundTag.h:13
Definition ItemStack.h:23
Definition Item.h:66
Definition Value.h:16
Definition SeedItemComponentLegacy.h:21
Definition Vec3.h:10