LeviLamina
Loading...
Searching...
No Matches
BlockChangeContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/ActorChangeContext.h"
7#include "mc/world/level/block/EnvironmentChangeContext.h"
8#include "mc/world/level/block/StatelessBlockChangeContext.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<
21 8,
22 24,
23 ::std::
24 variant<::std::monostate, ::EnvironmentChangeContext, ::ActorChangeContext, ::StatelessBlockChangeContext>>
25 mContextSource;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ::Actor* getActorSource() const;
32
33 MCAPI bool const hasValue() const;
34
35 MCAPI bool const isMultiBlockBreakContext() const;
36
37 MCAPI bool const isStatelessChangeContext(::StatelessBlockChangeContext type) const;
38
39 MCAPI bool const shouldSendBlockBreakEvent() const;
40 // NOLINTEND
41
42public:
43 // static functions
44 // NOLINTBEGIN
45 MCAPI static ::BlockChangeContext actorChange(::Actor* actorContext);
46
47 MCAPI static ::BlockChangeContext commandsChange();
48
49 MCAPI static ::BlockChangeContext environmentChange(::BlockPos const& blockPos);
50
51 MCAPI static ::BlockChangeContext multiBlockChange();
52
53 MCAPI static ::BlockChangeContext scriptsChange();
54
55 MCAPI static ::BlockChangeContext statelessChangeContext(::StatelessBlockChangeContext type);
56
57 MCAPI static ::BlockChangeContext structureChange();
58 // NOLINTEND
59};
Definition Actor.h:125
Definition BlockChangeContext.h:16
Definition BlockPos.h:21