Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PacketLimitHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/IPacketSecurityHandler.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/PacketViolationResponse.h"
9#include "mc/platform/ErrorInfo.h"
10
11// auto generated forward declare list
12// clang-format off
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PacketGroupDefinition>> mPacketGroupDefinition;
21 ::ll::TypedStorage<8, 24, ::std::optional<::std::error_code>> mLastResult;
22 ::ll::TypedStorage<1, 1, uchar> mViolationLevel;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::PacketViolationResponse checkForViolation(
29 ::MinecraftPacketIds packetId,
30 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
31 bool* outIsNewOrUpdatedViolation
32 ) /*override*/;
33
34 virtual uint getTelemetryData() /*override*/;
35 // NOLINTEND
36
37public:
38 // virtual function thunks
39 // NOLINTBEGIN
40 MCNAPI ::PacketViolationResponse $checkForViolation(
41 ::MinecraftPacketIds packetId,
42 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
43 bool* outIsNewOrUpdatedViolation
44 );
45
46 MCNAPI uint $getTelemetryData();
47
48
49 // NOLINTEND
50};
Definition IPacketSecurityHandler.h:10
Definition PacketGroupDefinition.h:14
Definition PacketLimitHandler.h:16
MCAPI::PacketViolationResponse $checkForViolation(::MinecraftPacketIds packetId, ::nonstd::expected< void, ::Bedrock::ErrorInfo<::std::error_code > > const &result, bool *outIsNewOrUpdatedViolation)
MCAPI uint $getTelemetryData()
Definition ErrorInfo.h:9