Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockQueuedNamedTickEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/ChunkBlockPos.h"
7#include "mc/world/level/Tick.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockType;
12class CompoundTag;
13// clang-format on
14
15class BlockQueuedNamedTickEvent {
16public:
17 // BlockQueuedNamedTickEvent inner types define
18 enum class ValidationResult : int {
19 Success = 0,
20 TriggerTimeNotAfterCreation = 1,
21 EmptyOrTooLongEventName = 2,
22 InvalidBlockType = 3,
23 };
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<2, 4, ::ChunkBlockPos> mChunkBlockPos;
29 ::ll::TypedStorage<4, 4, uint> mNamespaceHash;
30 ::ll::TypedStorage<8, 8, ::BlockType const&> mBlockType;
31 ::ll::TypedStorage<1, 32, ::std::array<char, 32>> mEventName;
32 ::ll::TypedStorage<8, 8, ::Tick> mCreationTime;
33 ::ll::TypedStorage<8, 8, ::Tick> mTriggerTime;
34 ::ll::TypedStorage<4, 4, ::BlockQueuedNamedTickEvent::ValidationResult> mValidationResult;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 BlockQueuedNamedTickEvent& operator=(BlockQueuedNamedTickEvent const&);
40 BlockQueuedNamedTickEvent(BlockQueuedNamedTickEvent const&);
41 BlockQueuedNamedTickEvent();
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCNAPI ::CompoundTag serialize() const;
47 // NOLINTEND
48};
MCAPI::CompoundTag serialize() const
Definition BlockType.h:79
Definition CompoundTag.h:18