LeviLamina
Loading...
Searching...
No Matches
LabTableReaction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/LabTableReactionType.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockPos;
11class BlockSource;
12class ItemStack;
14class Random;
15// clang-format on
16
17class LabTableReaction {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mLifetime;
22 ::ll::TypedStorage<4, 4, int> mMaxLifetime;
23 ::ll::TypedStorage<4, 4, int> mStartDelay;
24 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStack>> mResultItem;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockPos>> mPos;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Random>> mRandom;
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LabTableReactionComponent>>> mComponents;
28 ::ll::TypedStorage<1, 1, ::LabTableReactionType> mType;
29 ::ll::TypedStorage<1, 1, bool> mIsClientSide;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 LabTableReaction();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~LabTableReaction();
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI LabTableReaction(
46 ::LabTableReactionType type,
47 ::BlockPos const& pos,
48 bool isClientSide,
49 int maxLifetime,
50 int startDelay
51 );
52
53 MCAPI void addResultItem(::ItemStack const& resultItem);
54
55 MCFOLD int getReactionId();
56
57 MCFOLD ::LabTableReactionType getType();
58
59 MCAPI bool tick(::BlockSource& region);
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::std::unique_ptr<::LabTableReaction>
66 createReaction(::LabTableReactionType type, ::BlockPos const& pos, bool isClientSide);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void*
73 $ctor(::LabTableReactionType type, ::BlockPos const& pos, bool isClientSide, int maxLifetime, int startDelay);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition ItemStack.h:35
Definition LabTableReactionComponent.h:11
static MCAPI void ** $vftable()
Definition Random.h:10