Package net.minecraft.advancement
Class PlayerAdvancementTracker
java.lang.Object
net.minecraft.advancement.PlayerAdvancementTracker
- Mappings:
Namespace Name named net/minecraft/advancement/PlayerAdvancementTracker
intermediary net/minecraft/class_2985
official aky
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate AdvancementManager
private @Nullable AdvancementEntry
private boolean
private final Path
private static final Gson
private static final Logger
private ServerPlayerEntity
private final PlayerManager
private final Map
<AdvancementEntry, AdvancementProgress> private final com.mojang.serialization.Codec
<PlayerAdvancementTracker.ProgressMap> private final Set
<AdvancementEntry> private final Set
<PlacedAdvancement> private final Set
<AdvancementEntry> -
Constructor Summary
ConstructorDescriptionPlayerAdvancementTracker
(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, Path filePath, ServerPlayerEntity owner) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
beginTracking
(AdvancementEntry advancement) private <T extends CriterionConditions>
voidbeginTracking
(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) private void
beginTrackingAllAdvancements
(ServerAdvancementLoader advancementLoader) private void
calculateDisplay
(PlacedAdvancement root, Set<AdvancementEntry> added, Set<Identifier> removed) void
private void
endTrackingCompleted
(AdvancementEntry advancement) private <T extends CriterionConditions>
voidendTrackingCompleted
(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) getProgress
(AdvancementEntry advancement) boolean
grantCriterion
(AdvancementEntry advancement, String criterionName) private void
initProgress
(AdvancementEntry advancement, AdvancementProgress progress) private void
load
(ServerAdvancementLoader advancementLoader) private void
loadProgressMap
(ServerAdvancementLoader loader, PlayerAdvancementTracker.ProgressMap progressMap) private void
onStatusUpdate
(AdvancementEntry advancement) void
reload
(ServerAdvancementLoader advancementLoader) boolean
revokeCriterion
(AdvancementEntry advancement, String criterionName) private void
rewardEmptyAdvancements
(ServerAdvancementLoader advancementLoader) void
save()
void
sendUpdate
(ServerPlayerEntity player) void
setDisplayTab
(@Nullable AdvancementEntry advancement) void
setOwner
(ServerPlayerEntity owner)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/advancement/PlayerAdvancementTracker;LOGGER:Lorg/slf4j/Logger;
intermediary field_13394
Lnet/minecraft/class_2985;field_13394:Lorg/slf4j/Logger;
official a
Laky;a:Lorg/slf4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector named GSON
Lnet/minecraft/advancement/PlayerAdvancementTracker;GSON:Lcom/google/gson/Gson;
intermediary field_13395
Lnet/minecraft/class_2985;field_13395:Lcom/google/gson/Gson;
official b
Laky;b:Lcom/google/gson/Gson;
-
playerManager
- Mappings:
Namespace Name Mixin selector named playerManager
Lnet/minecraft/advancement/PlayerAdvancementTracker;playerManager:Lnet/minecraft/server/PlayerManager;
intermediary field_25325
Lnet/minecraft/class_2985;field_25325:Lnet/minecraft/class_3324;
official c
Laky;c:Lauq;
-
filePath
- Mappings:
Namespace Name Mixin selector named filePath
Lnet/minecraft/advancement/PlayerAdvancementTracker;filePath:Ljava/nio/file/Path;
intermediary field_41734
Lnet/minecraft/class_2985;field_41734:Ljava/nio/file/Path;
official d
Laky;d:Ljava/nio/file/Path;
-
advancementManager
- Mappings:
Namespace Name Mixin selector named advancementManager
Lnet/minecraft/advancement/PlayerAdvancementTracker;advancementManager:Lnet/minecraft/advancement/AdvancementManager;
intermediary field_46073
Lnet/minecraft/class_2985;field_46073:Lnet/minecraft/class_163;
official e
Laky;e:Lal;
-
progress
- Mappings:
Namespace Name Mixin selector named progress
Lnet/minecraft/advancement/PlayerAdvancementTracker;progress:Ljava/util/Map;
intermediary field_41735
Lnet/minecraft/class_2985;field_41735:Ljava/util/Map;
official f
Laky;f:Ljava/util/Map;
-
visibleAdvancements
- Mappings:
Namespace Name Mixin selector named visibleAdvancements
Lnet/minecraft/advancement/PlayerAdvancementTracker;visibleAdvancements:Ljava/util/Set;
intermediary field_13390
Lnet/minecraft/class_2985;field_13390:Ljava/util/Set;
official g
Laky;g:Ljava/util/Set;
-
progressUpdates
- Mappings:
Namespace Name Mixin selector named progressUpdates
Lnet/minecraft/advancement/PlayerAdvancementTracker;progressUpdates:Ljava/util/Set;
intermediary field_13388
Lnet/minecraft/class_2985;field_13388:Ljava/util/Set;
official h
Laky;h:Ljava/util/Set;
-
updatedRoots
- Mappings:
Namespace Name Mixin selector named updatedRoots
Lnet/minecraft/advancement/PlayerAdvancementTracker;updatedRoots:Ljava/util/Set;
intermediary field_41736
Lnet/minecraft/class_2985;field_41736:Ljava/util/Set;
official i
Laky;i:Ljava/util/Set;
-
owner
- Mappings:
Namespace Name Mixin selector named owner
Lnet/minecraft/advancement/PlayerAdvancementTracker;owner:Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary field_13391
Lnet/minecraft/class_2985;field_13391:Lnet/minecraft/class_3222;
official j
Laky;j:Laqu;
-
currentDisplayTab
- Mappings:
Namespace Name Mixin selector named currentDisplayTab
Lnet/minecraft/advancement/PlayerAdvancementTracker;currentDisplayTab:Lnet/minecraft/advancement/AdvancementEntry;
intermediary field_13387
Lnet/minecraft/class_2985;field_13387:Lnet/minecraft/class_8779;
official k
Laky;k:Lag;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector named dirty
Lnet/minecraft/advancement/PlayerAdvancementTracker;dirty:Z
intermediary field_13396
Lnet/minecraft/class_2985;field_13396:Z
official l
Laky;l:Z
-
progressMapCodec
- Mappings:
Namespace Name Mixin selector named progressMapCodec
Lnet/minecraft/advancement/PlayerAdvancementTracker;progressMapCodec:Lcom/mojang/serialization/Codec;
intermediary field_46074
Lnet/minecraft/class_2985;field_46074:Lcom/mojang/serialization/Codec;
official m
Laky;m:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PlayerAdvancementTracker
public PlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, Path filePath, ServerPlayerEntity owner) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/advancement/PlayerAdvancementTracker;<init>(Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/server/PlayerManager;Lnet/minecraft/server/ServerAdvancementLoader;Ljava/nio/file/Path;Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary <init>
Lnet/minecraft/class_2985;<init>(Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_3324;Lnet/minecraft/class_2989;Ljava/nio/file/Path;Lnet/minecraft/class_3222;)V
official <init>
Laky;<init>(Lcom/mojang/datafixers/DataFixer;Lauq;Lald;Ljava/nio/file/Path;Laqu;)V
-
-
Method Details
-
setOwner
- Mappings:
Namespace Name Mixin selector named setOwner
Lnet/minecraft/advancement/PlayerAdvancementTracker;setOwner(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_12875
Lnet/minecraft/class_2985;method_12875(Lnet/minecraft/class_3222;)V
official a
Laky;a(Laqu;)V
-
clearCriteria
public void clearCriteria()- Mappings:
Namespace Name Mixin selector named clearCriteria
Lnet/minecraft/advancement/PlayerAdvancementTracker;clearCriteria()V
intermediary method_12881
Lnet/minecraft/class_2985;method_12881()V
official a
Laky;a()V
-
reload
- Mappings:
Namespace Name Mixin selector named reload
Lnet/minecraft/advancement/PlayerAdvancementTracker;reload(Lnet/minecraft/server/ServerAdvancementLoader;)V
intermediary method_12886
Lnet/minecraft/class_2985;method_12886(Lnet/minecraft/class_2989;)V
official a
Laky;a(Lald;)V
-
beginTrackingAllAdvancements
- Mappings:
Namespace Name Mixin selector named beginTrackingAllAdvancements
Lnet/minecraft/advancement/PlayerAdvancementTracker;beginTrackingAllAdvancements(Lnet/minecraft/server/ServerAdvancementLoader;)V
intermediary method_12889
Lnet/minecraft/class_2985;method_12889(Lnet/minecraft/class_2989;)V
official b
Laky;b(Lald;)V
-
rewardEmptyAdvancements
- Mappings:
Namespace Name Mixin selector named rewardEmptyAdvancements
Lnet/minecraft/advancement/PlayerAdvancementTracker;rewardEmptyAdvancements(Lnet/minecraft/server/ServerAdvancementLoader;)V
intermediary method_12872
Lnet/minecraft/class_2985;method_12872(Lnet/minecraft/class_2989;)V
official c
Laky;c(Lald;)V
-
load
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/advancement/PlayerAdvancementTracker;load(Lnet/minecraft/server/ServerAdvancementLoader;)V
intermediary method_12873
Lnet/minecraft/class_2985;method_12873(Lnet/minecraft/class_2989;)V
official d
Laky;d(Lald;)V
-
save
public void save()- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/advancement/PlayerAdvancementTracker;save()V
intermediary method_12890
Lnet/minecraft/class_2985;method_12890()V
official b
Laky;b()V
-
loadProgressMap
private void loadProgressMap(ServerAdvancementLoader loader, PlayerAdvancementTracker.ProgressMap progressMap) - Mappings:
Namespace Name Mixin selector named loadProgressMap
Lnet/minecraft/advancement/PlayerAdvancementTracker;loadProgressMap(Lnet/minecraft/server/ServerAdvancementLoader;Lnet/minecraft/advancement/PlayerAdvancementTracker$ProgressMap;)V
intermediary method_53640
Lnet/minecraft/class_2985;method_53640(Lnet/minecraft/class_2989;Lnet/minecraft/class_2985$class_8780;)V
official a
Laky;a(Lald;Laky$a;)V
-
createProgressMap
- Mappings:
Namespace Name Mixin selector named createProgressMap
Lnet/minecraft/advancement/PlayerAdvancementTracker;createProgressMap()Lnet/minecraft/advancement/PlayerAdvancementTracker$ProgressMap;
intermediary method_53643
Lnet/minecraft/class_2985;method_53643()Lnet/minecraft/class_2985$class_8780;
official c
Laky;c()Laky$a;
-
grantCriterion
- Mappings:
Namespace Name Mixin selector named grantCriterion
Lnet/minecraft/advancement/PlayerAdvancementTracker;grantCriterion(Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;)Z
intermediary method_12878
Lnet/minecraft/class_2985;method_12878(Lnet/minecraft/class_8779;Ljava/lang/String;)Z
official a
Laky;a(Lag;Ljava/lang/String;)Z
-
revokeCriterion
- Mappings:
Namespace Name Mixin selector named revokeCriterion
Lnet/minecraft/advancement/PlayerAdvancementTracker;revokeCriterion(Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;)Z
intermediary method_12883
Lnet/minecraft/class_2985;method_12883(Lnet/minecraft/class_8779;Ljava/lang/String;)Z
official b
Laky;b(Lag;Ljava/lang/String;)Z
-
onStatusUpdate
- Mappings:
Namespace Name Mixin selector named onStatusUpdate
Lnet/minecraft/advancement/PlayerAdvancementTracker;onStatusUpdate(Lnet/minecraft/advancement/AdvancementEntry;)V
intermediary method_48028
Lnet/minecraft/class_2985;method_48028(Lnet/minecraft/class_8779;)V
official c
Laky;c(Lag;)V
-
beginTracking
- Mappings:
Namespace Name Mixin selector named beginTracking
Lnet/minecraft/advancement/PlayerAdvancementTracker;beginTracking(Lnet/minecraft/advancement/AdvancementEntry;)V
intermediary method_12874
Lnet/minecraft/class_2985;method_12874(Lnet/minecraft/class_8779;)V
official d
Laky;d(Lag;)V
-
beginTracking
private <T extends CriterionConditions> void beginTracking(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) - Mappings:
Namespace Name Mixin selector named beginTracking
Lnet/minecraft/advancement/PlayerAdvancementTracker;beginTracking(Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)V
intermediary method_53638
Lnet/minecraft/class_2985;method_53638(Lnet/minecraft/class_8779;Ljava/lang/String;Lnet/minecraft/class_175;)V
official a
Laky;a(Lag;Ljava/lang/String;Lao;)V
-
endTrackingCompleted
- Mappings:
Namespace Name Mixin selector named endTrackingCompleted
Lnet/minecraft/advancement/PlayerAdvancementTracker;endTrackingCompleted(Lnet/minecraft/advancement/AdvancementEntry;)V
intermediary method_12880
Lnet/minecraft/class_2985;method_12880(Lnet/minecraft/class_8779;)V
official e
Laky;e(Lag;)V
-
endTrackingCompleted
private <T extends CriterionConditions> void endTrackingCompleted(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) - Mappings:
Namespace Name Mixin selector named endTrackingCompleted
Lnet/minecraft/advancement/PlayerAdvancementTracker;endTrackingCompleted(Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)V
intermediary method_53642
Lnet/minecraft/class_2985;method_53642(Lnet/minecraft/class_8779;Ljava/lang/String;Lnet/minecraft/class_175;)V
official b
Laky;b(Lag;Ljava/lang/String;Lao;)V
-
sendUpdate
- Mappings:
Namespace Name Mixin selector named sendUpdate
Lnet/minecraft/advancement/PlayerAdvancementTracker;sendUpdate(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_12876
Lnet/minecraft/class_2985;method_12876(Lnet/minecraft/class_3222;)V
official b
Laky;b(Laqu;)V
-
setDisplayTab
- Mappings:
Namespace Name Mixin selector named setDisplayTab
Lnet/minecraft/advancement/PlayerAdvancementTracker;setDisplayTab(Lnet/minecraft/advancement/AdvancementEntry;)V
intermediary method_12888
Lnet/minecraft/class_2985;method_12888(Lnet/minecraft/class_8779;)V
official a
Laky;a(Lag;)V
-
getProgress
- Mappings:
Namespace Name Mixin selector named getProgress
Lnet/minecraft/advancement/PlayerAdvancementTracker;getProgress(Lnet/minecraft/advancement/AdvancementEntry;)Lnet/minecraft/advancement/AdvancementProgress;
intermediary method_12882
Lnet/minecraft/class_2985;method_12882(Lnet/minecraft/class_8779;)Lnet/minecraft/class_167;
official b
Laky;b(Lag;)Lai;
-
initProgress
- Mappings:
Namespace Name Mixin selector named initProgress
Lnet/minecraft/advancement/PlayerAdvancementTracker;initProgress(Lnet/minecraft/advancement/AdvancementEntry;Lnet/minecraft/advancement/AdvancementProgress;)V
intermediary method_12884
Lnet/minecraft/class_2985;method_12884(Lnet/minecraft/class_8779;Lnet/minecraft/class_167;)V
official a
Laky;a(Lag;Lai;)V
-
calculateDisplay
private void calculateDisplay(PlacedAdvancement root, Set<AdvancementEntry> added, Set<Identifier> removed) - Mappings:
Namespace Name Mixin selector named calculateDisplay
Lnet/minecraft/advancement/PlayerAdvancementTracker;calculateDisplay(Lnet/minecraft/advancement/PlacedAdvancement;Ljava/util/Set;Ljava/util/Set;)V
intermediary method_48025
Lnet/minecraft/class_2985;method_48025(Lnet/minecraft/class_8781;Ljava/util/Set;Ljava/util/Set;)V
official a
Laky;a(Lah;Ljava/util/Set;Ljava/util/Set;)V
-