LeviLamina
Loading...
Searching...
No Matches
EndGatewayBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/BlockActor.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class BlockPos;
13class BlockSource;
14class BlockVolume;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
18class SaveContext;
19class WorldGenerator;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, int> mAge;
27 ::ll::TypedStorage<4, 4, int> mTeleportCooldown;
28 ::ll::TypedStorage<4, 12, ::BlockPos> mExitPortal;
29 ::ll::TypedStorage<1, 1, bool> mNeedsExitGeneration;
30 ::ll::TypedStorage<1, 1, bool> mTeleportTriggered;
31 ::ll::TypedStorage<1, 1, bool> mNeedsExitPositionVerification;
32 ::ll::TypedStorage<1, 1, bool> mExitPositionVerified;
33 ::ll::TypedStorage<1, 1, bool> mEndGatewayBadPosResetRequired;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 1
40 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
41
42 // vIndex: 2
43 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
44
45 // vIndex: 7
46 virtual void tick(::BlockSource& region) /*override*/;
47
48 // vIndex: 8
49 virtual void onChanged(::BlockSource& region) /*override*/;
50
51 // vIndex: 20
52 virtual bool hasAlphaLayer() const /*override*/;
53
54 // vIndex: 16
55 virtual void triggerEvent(int b0, int b1) /*override*/;
56
57 // vIndex: 43
58 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
59
60 // vIndex: 0
61 virtual ~EndGatewayBlockActor() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI int getParticleAmount(::BlockSource& region, ::BlockPos const& pos) const;
68
69 MCAPI void teleportEntity(::Actor& entity);
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static int _getHighestSection(::WorldGenerator& endGenerator, ::BlockVolume& box, ::BlockPos const& pos);
76
77 MCAPI static ::BlockPos findExitPortal(::WorldGenerator& endGenerator, ::BlockPos const& origin);
78
79 MCAPI static ::BlockPos
80 findValidSpawnAround(::BlockSource& region, ::BlockPos const& around, bool searchForEndStoneOnly, int searchRadius);
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
93
94 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
95
96 MCAPI void $tick(::BlockSource& region);
97
98 MCFOLD void $onChanged(::BlockSource& region);
99
100 MCFOLD bool $hasAlphaLayer() const;
101
102 MCAPI void $triggerEvent(int b0, int b1);
103
104 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCAPI static void** $vftable();
111 // NOLINTEND
112};
Definition Actor.h:104
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition BlockVolume.h:11
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EndGatewayBlockActor.h:22
Definition ILevel.h:203
Definition SaveContext.h:5
Definition WorldGenerator.h:30