LeviLamina
Loading...
Searching...
No Matches
SurvivalMode.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/gamemode/GameMode.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockPos;
14class ItemStack;
15class Vec3;
16// clang-format on
17
18class SurvivalMode : public ::GameMode {
19public:
20 // member variables
21 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 SurvivalMode& operator=(SurvivalMode const&);
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 14
38 virtual bool attack(::Actor& entity) /*override*/;
39
40 // vIndex: 13
41 virtual bool interact(::Actor& entity, ::Vec3 const& location) /*override*/;
42
43 // vIndex: 2
44 virtual bool destroyBlock(::BlockPos const& pos, uchar face) /*override*/;
45
46 // vIndex: 1
47 virtual bool startDestroyBlock(::BlockPos const& pos, uchar face, bool& hasDestroyedBlock) /*override*/;
48
49 // vIndex: 5
50 virtual void startBuildBlock(::BlockPos const& pos, uchar face) /*override*/;
51
52 // vIndex: 6
53 virtual bool buildBlock(::BlockPos const& pos, uchar face, bool const isSimTick) /*override*/;
54
55 // vIndex: 11
56 virtual bool useItem(::ItemStack& item) /*override*/;
57
58 // vIndex: 12
59 virtual ::InteractionResult useItemOn(
60 ::ItemStack& item,
61 ::BlockPos const& at,
62 uchar face,
63 ::Vec3 const& hit,
64 ::Block const* targetBlock,
65 bool isFirstEvent
66 ) /*override*/;
67
68 // vIndex: 9
69 virtual void tick() /*override*/;
70
71 // vIndex: 16
72 virtual void setTrialMode(bool isEnabled) /*override*/;
73
74 // vIndex: 17
75 virtual bool isInTrialMode() /*override*/;
76
77 // vIndex: 18
78 virtual void registerUpsellScreenCallback(::std::function<void(bool)> callback) /*override*/;
79
80 // vIndex: 0
81 virtual ~SurvivalMode() /*override*/ = default;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCNAPI void _messagePlayers(::std::string message);
88
89 MCNAPI void _showTrialReminder(bool force);
90 // NOLINTEND
91
92public:
93 // static variables
94 // NOLINTBEGIN
95 MCNAPI static bool& mTrialHasEnded();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCNAPI bool $attack(::Actor& entity);
102
103 MCNAPI bool $interact(::Actor& entity, ::Vec3 const& location);
104
105 MCNAPI bool $destroyBlock(::BlockPos const& pos, uchar face);
106
107 MCNAPI bool $startDestroyBlock(::BlockPos const& pos, uchar face, bool& hasDestroyedBlock);
108
109 MCNAPI void $startBuildBlock(::BlockPos const& pos, uchar face);
110
111 MCNAPI bool $buildBlock(::BlockPos const& pos, uchar face, bool const isSimTick);
112
113 MCNAPI bool $useItem(::ItemStack& item);
114
115 MCNAPI ::InteractionResult $useItemOn(
116 ::ItemStack& item,
117 ::BlockPos const& at,
118 uchar face,
119 ::Vec3 const& hit,
120 ::Block const* targetBlock,
121 bool isFirstEvent
122 );
123
124 MCNAPI void $tick();
125
126 MCNAPI void $setTrialMode(bool isEnabled);
127
128 MCNAPI bool $isInTrialMode();
129
130 MCNAPI void $registerUpsellScreenCallback(::std::function<void(bool)> callback);
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
Definition Actor.h:103
Definition BlockPos.h:18
Definition Block.h:38
Definition GameMode.h:22
Definition InteractionResult.h:5
Definition ItemStack.h:25
Definition SurvivalMode.h:18
MCAPI::InteractionResult $useItemOn(::ItemStack &item, ::BlockPos const &at, uchar face, ::Vec3 const &hit, ::Block const *targetBlock, bool isFirstEvent)
MCAPI bool $buildBlock(::BlockPos const &pos, uchar face, bool const isSimTick)
static MCAPI void ** $vftable()
MCAPI void $setTrialMode(bool isEnabled)
MCAPI bool $destroyBlock(::BlockPos const &pos, uchar face)
MCAPI bool $useItem(::ItemStack &item)
MCAPI void $tick()
MCAPI bool $isInTrialMode()
static MCAPI bool & mTrialHasEnded()
MCAPI bool $interact(::Actor &entity, ::Vec3 const &location)
MCAPI bool $startDestroyBlock(::BlockPos const &pos, uchar face, bool &hasDestroyedBlock)
MCAPI void $startBuildBlock(::BlockPos const &pos, uchar face)
MCAPI void _messagePlayers(::std::string message)
MCAPI void _showTrialReminder(bool force)
MCAPI bool $attack(::Actor &entity)
MCAPI void $registerUpsellScreenCallback(::std::function< void(bool)> callback)
Definition Vec3.h:10
Definition Alias.h:14