Package net.minecraft.advancement
Class PlayerAdvancementTracker
java.lang.Object
net.minecraft.advancement.PlayerAdvancementTracker
- Mappings:
Namespace Name official xe
intermediary net/minecraft/class_2985
named net/minecraft/advancement/PlayerAdvancementTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate File
private Map<Advancement,AdvancementProgress>
private @Nullable Advancement
private com.mojang.datafixers.DataFixer
private boolean
private static int
private static Gson
private static TypeToken<Map<Identifier,AdvancementProgress>>
private static Logger
private ServerPlayerEntity
private PlayerManager
private Set<Advancement>
private Set<Advancement>
private Set<Advancement>
-
Constructor Summary
ConstructorDescriptionPlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, File advancementFile, ServerPlayerEntity owner)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
beginTracking(Advancement advancement)
private void
beginTrackingAllAdvancements(ServerAdvancementLoader advancementLoader)
private boolean
canSee(Advancement advancement)
void
private void
endTrackingCompleted(Advancement advancement)
getProgress(Advancement advancement)
boolean
grantCriterion(Advancement advancement, String criterionName)
private boolean
hasChildrenDone(Advancement advancement)
private void
initProgress(Advancement advancement, AdvancementProgress progress)
private void
load(ServerAdvancementLoader advancementLoader)
void
reload(ServerAdvancementLoader advancementLoader)
boolean
revokeCriterion(Advancement advancement, String criterionName)
private void
rewardEmptyAdvancements(ServerAdvancementLoader advancementLoader)
void
save()
void
sendUpdate(ServerPlayerEntity player)
void
setDisplayTab(@Nullable Advancement advancement)
void
setOwner(ServerPlayerEntity owner)
private void
private void
updateDisplay(Advancement advancement)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lxe;a:Lorg/apache/logging/log4j/Logger;
intermediary field_13394
Lnet/minecraft/class_2985;field_13394:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/advancement/PlayerAdvancementTracker;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_33383
private static final int field_33383- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official b
Lxe;b:I
intermediary field_33383
Lnet/minecraft/class_2985;field_33383:I
named field_33383
Lnet/minecraft/advancement/PlayerAdvancementTracker;field_33383:I
-
GSON
- Mappings:
Namespace Name Mixin selector official c
Lxe;c: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;
-
JSON_TYPE
- Mappings:
Namespace Name Mixin selector official d
Lxe;d:Lcom/google/gson/reflect/TypeToken;
intermediary field_13392
Lnet/minecraft/class_2985;field_13392:Lcom/google/gson/reflect/TypeToken;
named JSON_TYPE
Lnet/minecraft/advancement/PlayerAdvancementTracker;JSON_TYPE:Lcom/google/gson/reflect/TypeToken;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official e
Lxe;e:Lcom/mojang/datafixers/DataFixer;
intermediary field_25324
Lnet/minecraft/class_2985;field_25324:Lcom/mojang/datafixers/DataFixer;
named dataFixer
Lnet/minecraft/advancement/PlayerAdvancementTracker;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
playerManager
- Mappings:
Namespace Name Mixin selector official f
Lxe;f:Laeh;
intermediary field_25325
Lnet/minecraft/class_2985;field_25325:Lnet/minecraft/class_3324;
named playerManager
Lnet/minecraft/advancement/PlayerAdvancementTracker;playerManager:Lnet/minecraft/server/PlayerManager;
-
advancementFile
- Mappings:
Namespace Name Mixin selector official g
Lxe;g:Ljava/io/File;
intermediary field_13393
Lnet/minecraft/class_2985;field_13393:Ljava/io/File;
named advancementFile
Lnet/minecraft/advancement/PlayerAdvancementTracker;advancementFile:Ljava/io/File;
-
advancementToProgress
- Mappings:
Namespace Name Mixin selector official h
Lxe;h:Ljava/util/Map;
intermediary field_13389
Lnet/minecraft/class_2985;field_13389:Ljava/util/Map;
named advancementToProgress
Lnet/minecraft/advancement/PlayerAdvancementTracker;advancementToProgress:Ljava/util/Map;
-
visibleAdvancements
- Mappings:
Namespace Name Mixin selector official i
Lxe;i: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;
-
visibilityUpdates
- Mappings:
Namespace Name Mixin selector official j
Lxe;j:Ljava/util/Set;
intermediary field_13386
Lnet/minecraft/class_2985;field_13386:Ljava/util/Set;
named visibilityUpdates
Lnet/minecraft/advancement/PlayerAdvancementTracker;visibilityUpdates:Ljava/util/Set;
-
progressUpdates
- Mappings:
Namespace Name Mixin selector official k
Lxe;k: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;
-
owner
- Mappings:
Namespace Name Mixin selector official l
Lxe;l:Labs;
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 m
Lxe;m:Lae;
intermediary field_13387
Lnet/minecraft/class_2985;field_13387:Lnet/minecraft/class_161;
named currentDisplayTab
Lnet/minecraft/advancement/PlayerAdvancementTracker;currentDisplayTab:Lnet/minecraft/advancement/Advancement;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector official n
Lxe;n:Z
intermediary field_13396
Lnet/minecraft/class_2985;field_13396:Z
named dirty
Lnet/minecraft/advancement/PlayerAdvancementTracker;dirty:Z
-
-
Constructor Details
-
PlayerAdvancementTracker
public PlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, File advancementFile, ServerPlayerEntity owner)- Mappings:
Namespace Name Mixin selector official <init>
Lxe;<init>(Lcom/mojang/datafixers/DataFixer;Laeh;Lxg;Ljava/io/File;Labs;)V
intermediary <init>
Lnet/minecraft/class_2985;<init>(Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_3324;Lnet/minecraft/class_2989;Ljava/io/File;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/io/File;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
-
Method Details
-
setOwner
- Mappings:
Namespace Name Mixin selector official a
Lxe;a(Labs;)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
Lxe;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
Lxe;a(Lxg;)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
Lxe;b(Lxg;)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
-
updateCompleted
private void updateCompleted()- Mappings:
Namespace Name Mixin selector official c
Lxe;c()V
intermediary method_12887
Lnet/minecraft/class_2985;method_12887()V
named updateCompleted
Lnet/minecraft/advancement/PlayerAdvancementTracker;updateCompleted()V
-
rewardEmptyAdvancements
- Mappings:
Namespace Name Mixin selector official c
Lxe;c(Lxg;)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
Lxe;d(Lxg;)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
Lxe;b()V
intermediary method_12890
Lnet/minecraft/class_2985;method_12890()V
named save
Lnet/minecraft/advancement/PlayerAdvancementTracker;save()V
-
grantCriterion
- Mappings:
Namespace Name Mixin selector official a
Lxe;a(Lae;Ljava/lang/String;)Z
intermediary method_12878
Lnet/minecraft/class_2985;method_12878(Lnet/minecraft/class_161;Ljava/lang/String;)Z
named grantCriterion
Lnet/minecraft/advancement/PlayerAdvancementTracker;grantCriterion(Lnet/minecraft/advancement/Advancement;Ljava/lang/String;)Z
-
revokeCriterion
- Mappings:
Namespace Name Mixin selector official b
Lxe;b(Lae;Ljava/lang/String;)Z
intermediary method_12883
Lnet/minecraft/class_2985;method_12883(Lnet/minecraft/class_161;Ljava/lang/String;)Z
named revokeCriterion
Lnet/minecraft/advancement/PlayerAdvancementTracker;revokeCriterion(Lnet/minecraft/advancement/Advancement;Ljava/lang/String;)Z
-
beginTracking
- Mappings:
Namespace Name Mixin selector official c
Lxe;c(Lae;)V
intermediary method_12874
Lnet/minecraft/class_2985;method_12874(Lnet/minecraft/class_161;)V
named beginTracking
Lnet/minecraft/advancement/PlayerAdvancementTracker;beginTracking(Lnet/minecraft/advancement/Advancement;)V
-
endTrackingCompleted
- Mappings:
Namespace Name Mixin selector official d
Lxe;d(Lae;)V
intermediary method_12880
Lnet/minecraft/class_2985;method_12880(Lnet/minecraft/class_161;)V
named endTrackingCompleted
Lnet/minecraft/advancement/PlayerAdvancementTracker;endTrackingCompleted(Lnet/minecraft/advancement/Advancement;)V
-
sendUpdate
- Mappings:
Namespace Name Mixin selector official b
Lxe;b(Labs;)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
Lxe;a(Lae;)V
intermediary method_12888
Lnet/minecraft/class_2985;method_12888(Lnet/minecraft/class_161;)V
named setDisplayTab
Lnet/minecraft/advancement/PlayerAdvancementTracker;setDisplayTab(Lnet/minecraft/advancement/Advancement;)V
-
getProgress
- Mappings:
Namespace Name Mixin selector official b
Lxe;b(Lae;)Lag;
intermediary method_12882
Lnet/minecraft/class_2985;method_12882(Lnet/minecraft/class_161;)Lnet/minecraft/class_167;
named getProgress
Lnet/minecraft/advancement/PlayerAdvancementTracker;getProgress(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/advancement/AdvancementProgress;
-
initProgress
- Mappings:
Namespace Name Mixin selector official a
Lxe;a(Lae;Lag;)V
intermediary method_12884
Lnet/minecraft/class_2985;method_12884(Lnet/minecraft/class_161;Lnet/minecraft/class_167;)V
named initProgress
Lnet/minecraft/advancement/PlayerAdvancementTracker;initProgress(Lnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementProgress;)V
-
updateDisplay
- Mappings:
Namespace Name Mixin selector official e
Lxe;e(Lae;)V
intermediary method_12885
Lnet/minecraft/class_2985;method_12885(Lnet/minecraft/class_161;)V
named updateDisplay
Lnet/minecraft/advancement/PlayerAdvancementTracker;updateDisplay(Lnet/minecraft/advancement/Advancement;)V
-
canSee
- Mappings:
Namespace Name Mixin selector official f
Lxe;f(Lae;)Z
intermediary method_12879
Lnet/minecraft/class_2985;method_12879(Lnet/minecraft/class_161;)Z
named canSee
Lnet/minecraft/advancement/PlayerAdvancementTracker;canSee(Lnet/minecraft/advancement/Advancement;)Z
-
hasChildrenDone
- Mappings:
Namespace Name Mixin selector official g
Lxe;g(Lae;)Z
intermediary method_12877
Lnet/minecraft/class_2985;method_12877(Lnet/minecraft/class_161;)Z
named hasChildrenDone
Lnet/minecraft/advancement/PlayerAdvancementTracker;hasChildrenDone(Lnet/minecraft/advancement/Advancement;)Z
-