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