Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create client.session package #3644

Merged
merged 2 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_8186 net/minecraft/client/util/BanReason
CLASS net/minecraft/class_8186 net/minecraft/client/session/BanReason
FIELD field_42904 description Lnet/minecraft/class_2561;
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
ARG 3 id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7588 net/minecraft/client/util/Bans
CLASS net/minecraft/class_7588 net/minecraft/client/session/Bans
FIELD field_39720 TEMPORARY_TITLE Lnet/minecraft/class_2561;
FIELD field_39721 PERMANENT_TITLE Lnet/minecraft/class_2561;
FIELD field_46009 NAME_TITLE Lnet/minecraft/class_2561;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7853 net/minecraft/client/util/ProfileKeys
CLASS net/minecraft/class_7853 net/minecraft/client/session/ProfileKeys
FIELD field_40800 MISSING Lnet/minecraft/class_7853;
METHOD method_46522 fetchKeyPair ()Ljava/util/concurrent/CompletableFuture;
METHOD method_46523 isExpired ()Z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7434 net/minecraft/client/util/ProfileKeysImpl
CLASS net/minecraft/class_7434 net/minecraft/client/session/ProfileKeysImpl
COMMENT A class to fetch, load, and save the player's public and private keys.
FIELD field_39074 LOGGER Lorg/slf4j/Logger;
FIELD field_39075 PROFILE_KEYS_PATH Ljava/nio/file/Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_320 net/minecraft/client/util/Session
CLASS net/minecraft/class_320 net/minecraft/client/session/Session
FIELD field_1982 username Ljava/lang/String;
FIELD field_1983 accessToken Ljava/lang/String;
FIELD field_1984 accountType Lnet/minecraft/class_320$class_321;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7855 net/minecraft/client/report/AbuseReport
CLASS net/minecraft/class_7855 net/minecraft/client/session/report/AbuseReport
FIELD field_40813 reportId Ljava/util/UUID;
FIELD field_40814 currentTime Ljava/time/Instant;
FIELD field_40815 reportedPlayerUuid Ljava/util/UUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7574 net/minecraft/client/report/AbuseReportContext
CLASS net/minecraft/class_7574 net/minecraft/client/session/report/AbuseReportContext
FIELD field_39675 MAX_LOGS I
FIELD field_40819 sender Lnet/minecraft/class_7563;
FIELD field_40820 environment Lnet/minecraft/class_7569;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7573 net/minecraft/client/report/AbuseReportReason
CLASS net/minecraft/class_7573 net/minecraft/client/session/report/AbuseReportReason
FIELD field_39671 id Ljava/lang/String;
FIELD field_39672 text Lnet/minecraft/class_2561;
FIELD field_39673 description Lnet/minecraft/class_2561;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7563 net/minecraft/client/report/AbuseReportSender
CLASS net/minecraft/class_7563 net/minecraft/client/session/report/AbuseReportSender
METHOD method_44561 canSendReports ()Z
METHOD method_44562 create (Lnet/minecraft/class_7569;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/class_7563;
ARG 0 environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_8776 net/minecraft/client/report/AbuseReportType
CLASS net/minecraft/class_8776 net/minecraft/client/session/report/AbuseReportType
FIELD field_46067 name Ljava/lang/String;
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
ARG 3 name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7566 net/minecraft/client/report/ChatAbuseReport
CLASS net/minecraft/class_7566 net/minecraft/client/session/report/ChatAbuseReport
FIELD field_46059 selectedMessages Lit/unimi/dsi/fastutil/ints/IntSet;
METHOD method_44569 toggleMessageSelection (ILcom/mojang/authlib/minecraft/report/AbuseReportLimits;)V
ARG 1 index
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7757 net/minecraft/client/report/ContextMessageCollector
CLASS net/minecraft/class_7757 net/minecraft/client/session/report/ContextMessageCollector
FIELD field_40498 leadingContextMessageCount I
FIELD field_40499 contextMessages Ljava/util/List;
METHOD <init> (I)V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7541 net/minecraft/client/report/MessagesListAdder
CLASS net/minecraft/class_7541 net/minecraft/client/session/report/MessagesListAdder
FIELD field_39581 log Lnet/minecraft/class_7555;
FIELD field_39582 reportablePredicate Ljava/util/function/Predicate;
FIELD field_40439 contextMessageCollector Lnet/minecraft/class_7757;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7569 net/minecraft/client/report/ReporterEnvironment
CLASS net/minecraft/class_7569 net/minecraft/client/session/report/ReporterEnvironment
METHOD method_44586 ofIntegratedServer ()Lnet/minecraft/class_7569;
METHOD method_44587 ofRealm (Lnet/minecraft/class_4877;)Lnet/minecraft/class_7569;
ARG 0 server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_8777 net/minecraft/client/report/SkinAbuseReport
CLASS net/minecraft/class_8777 net/minecraft/client/session/report/SkinAbuseReport
FIELD field_46069 skinSupplier Ljava/util/function/Supplier;
METHOD <init> (Ljava/util/UUID;Ljava/time/Instant;Ljava/util/UUID;Ljava/util/function/Supplier;)V
ARG 1 reportId
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_8773 net/minecraft/client/report/UsernameAbuseReport
CLASS net/minecraft/class_8773 net/minecraft/client/session/report/UsernameAbuseReport
FIELD field_46060 username Ljava/lang/String;
METHOD <init> (Ljava/util/UUID;Ljava/time/Instant;Ljava/util/UUID;Ljava/lang/String;)V
ARG 1 reportId
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7555 net/minecraft/client/report/log/ChatLog
CLASS net/minecraft/class_7555 net/minecraft/client/session/report/log/ChatLog
COMMENT A chat log holds received message entries with sequential indices, where
COMMENT newer entries receive bigger indices.
COMMENT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7629 net/minecraft/client/report/log/ChatLogEntry
CLASS net/minecraft/class_7629 net/minecraft/client/session/report/log/ChatLogEntry
COMMENT An entry logged to {@link ChatLog}.
FIELD field_40803 CODEC Lcom/mojang/serialization/Codec;
METHOD method_46538 getType ()Lnet/minecraft/class_7629$class_7854;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7557 net/minecraft/client/report/log/ReceivedMessage
CLASS net/minecraft/class_7557 net/minecraft/client/session/report/log/ReceivedMessage
COMMENT A message received by the client and stored in {@link ChatLog}.
COMMENT
COMMENT <p>This includes both {@linkplain net.minecraft.network.packet.s2c.play.ChatMessageS2CPacket
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_8561 net/minecraft/client/util/telemetry/GameLoadTimeEvent
CLASS net/minecraft/class_8561 net/minecraft/client/session/telemetry/GameLoadTimeEvent
FIELD field_44842 INSTANCE Lnet/minecraft/class_8561;
FIELD field_44843 LOGGER Lorg/slf4j/Logger;
FIELD field_44844 ticker Lcom/google/common/base/Ticker;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7977 net/minecraft/client/util/telemetry/PerformanceMetricsEvent
CLASS net/minecraft/class_7977 net/minecraft/client/session/telemetry/PerformanceMetricsEvent
FIELD field_41510 MAX_MEMORY_KB J
FIELD field_41511 frameRateSamples Lit/unimi/dsi/fastutil/longs/LongList;
FIELD field_41512 renderTimeSamples Lit/unimi/dsi/fastutil/longs/LongList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7973 net/minecraft/client/util/telemetry/PropertyMap
CLASS net/minecraft/class_7973 net/minecraft/client/session/telemetry/PropertyMap
FIELD field_41496 backingMap Ljava/util/Map;
METHOD <init> (Ljava/util/Map;)V
ARG 1 backingMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7976 net/minecraft/client/util/telemetry/SampleEvent
CLASS net/minecraft/class_7976 net/minecraft/client/session/telemetry/SampleEvent
FIELD field_41505 INTERVAL_IN_MILLIS I
FIELD field_41506 BATCH_SIZE I
FIELD field_41507 sampleCount I
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7962 net/minecraft/client/util/telemetry/SentTelemetryEvent
CLASS net/minecraft/class_7962 net/minecraft/client/session/telemetry/SentTelemetryEvent
FIELD field_41430 CODEC Lcom/mojang/serialization/Codec;
METHOD method_47711 createEvent (Lcom/mojang/authlib/minecraft/TelemetrySession;)Lcom/mojang/authlib/minecraft/TelemetryEvent;
ARG 1 session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7969 net/minecraft/client/util/telemetry/TelemetryEventProperty
CLASS net/minecraft/class_7969 net/minecraft/client/session/telemetry/TelemetryEventProperty
FIELD field_41457 DATE_TIME_FORMATTER Ljava/time/format/DateTimeFormatter;
METHOD method_47743 getTitle ()Lnet/minecraft/class_5250;
METHOD method_47744 (Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;Ljava/lang/String;Lnet/minecraft/class_7969$class_7971;)V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7966 net/minecraft/client/util/telemetry/TelemetryEventType
CLASS net/minecraft/class_7966 net/minecraft/client/session/telemetry/TelemetryEventType
FIELD field_41435 CODEC Lcom/mojang/serialization/Codec;
FIELD field_41436 WORLD_LOADED Lnet/minecraft/class_7966;
FIELD field_41437 PERFORMANCE_METRICS Lnet/minecraft/class_7966;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7968 net/minecraft/client/util/telemetry/TelemetryLogManager
CLASS net/minecraft/class_7968 net/minecraft/client/session/telemetry/TelemetryLogManager
FIELD field_41452 LOGGER Lorg/slf4j/Logger;
FIELD field_41453 FILE_EXTENSION Ljava/lang/String;
FIELD field_41454 RETENTION_DAYS I
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLASS net/minecraft/class_7964 net/minecraft/client/session/telemetry/TelemetryLogger
METHOD log (Lnet/minecraft/class_7962;)V
ARG 1 event
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_6628 net/minecraft/client/util/telemetry/TelemetryManager
CLASS net/minecraft/class_6628 net/minecraft/client/session/telemetry/TelemetryManager
FIELD field_34948 NEXT_WORKER_ID Ljava/util/concurrent/atomic/AtomicInteger;
FIELD field_34949 EXECUTOR Ljava/util/concurrent/Executor;
FIELD field_41426 userApiService Lcom/mojang/authlib/minecraft/UserApiService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7965 net/minecraft/client/util/telemetry/TelemetrySender
CLASS net/minecraft/class_7965 net/minecraft/client/session/telemetry/TelemetrySender
FIELD field_41434 NOOP Lnet/minecraft/class_7965;
METHOD decorate (Ljava/util/function/Consumer;)Lnet/minecraft/class_7965;
ARG 1 decorationAdder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7963 net/minecraft/client/util/telemetry/ThreadedLogWriter
CLASS net/minecraft/class_7963 net/minecraft/client/session/telemetry/ThreadedLogWriter
FIELD field_41431 LOGGER Lorg/slf4j/Logger;
FIELD field_41432 writer Lnet/minecraft/class_7935;
FIELD field_41433 executor Lnet/minecraft/class_3846;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7981 net/minecraft/client/util/telemetry/WorldLoadTimesEvent
CLASS net/minecraft/class_7981 net/minecraft/client/session/telemetry/WorldLoadTimesEvent
FIELD field_41519 newWorld Z
FIELD field_41520 worldLoadTime Ljava/time/Duration;
METHOD <init> (ZLjava/time/Duration;)V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7979 net/minecraft/client/util/telemetry/WorldLoadedEvent
CLASS net/minecraft/class_7979 net/minecraft/client/session/telemetry/WorldLoadedEvent
FIELD field_41516 sent Z
FIELD field_41517 gameMode Lnet/minecraft/class_7969$class_7971;
FIELD field_41518 brand Ljava/lang/String;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7975 net/minecraft/client/util/telemetry/WorldSession
CLASS net/minecraft/class_7975 net/minecraft/client/session/telemetry/WorldSession
FIELD field_41499 sessionId Ljava/util/UUID;
FIELD field_41500 sender Lnet/minecraft/class_7965;
FIELD field_41501 worldLoadedEvent Lnet/minecraft/class_7979;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_7982 net/minecraft/client/util/telemetry/WorldUnloadedEvent
CLASS net/minecraft/class_7982 net/minecraft/client/session/telemetry/WorldUnloadedEvent
FIELD field_41521 startTime Ljava/util/Optional;
FIELD field_41522 ticksSinceLoad J
FIELD field_41523 lastTick J
Expand Down

This file was deleted.