Class PlayerAdvancementTracker

java.lang.Object
net.minecraft.advancement.PlayerAdvancementTracker

public class PlayerAdvancementTracker extends Object
Mappings:
Namespace Name
named net/minecraft/advancement/PlayerAdvancementTracker
intermediary net/minecraft/class_2985
official aln
  • Field Details

    • LOGGER

      private static final Logger 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 Laln;a:Lorg/slf4j/Logger;
    • GSON

      private static final Gson 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 Laln;b:Lcom/google/gson/Gson;
    • playerManager

      private final PlayerManager 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 Laln;c:Lavd;
    • filePath

      private final Path 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 Laln;d:Ljava/nio/file/Path;
    • advancementManager

      private AdvancementManager 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 Laln;e:Lak;
    • progress

      private final Map<AdvancementEntry,AdvancementProgress> 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 Laln;f:Ljava/util/Map;
    • visibleAdvancements

      private final Set<AdvancementEntry> 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 Laln;g:Ljava/util/Set;
    • progressUpdates

      private final Set<AdvancementEntry> 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 Laln;h:Ljava/util/Set;
    • updatedRoots

      private final Set<PlacedAdvancement> 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 Laln;i:Ljava/util/Set;
    • owner

      private ServerPlayerEntity 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 Laln;j:Larg;
    • currentDisplayTab

      @Nullable private @Nullable AdvancementEntry 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 Laln;k:Laf;
    • 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 Laln;l:Z
    • progressMapCodec

      private final com.mojang.serialization.Codec<PlayerAdvancementTracker.ProgressMap> 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 Laln;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> Laln;<init>(Lcom/mojang/datafixers/DataFixer;Lavd;Lals;Ljava/nio/file/Path;Larg;)V
  • Method Details

    • setOwner

      public void setOwner(ServerPlayerEntity owner)
      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 Laln;a(Larg;)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 Laln;a()V
    • reload

      public void reload(ServerAdvancementLoader advancementLoader)
      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 Laln;a(Lals;)V
    • beginTrackingAllAdvancements

      private void beginTrackingAllAdvancements(ServerAdvancementLoader advancementLoader)
      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 Laln;b(Lals;)V
    • rewardEmptyAdvancements

      private void rewardEmptyAdvancements(ServerAdvancementLoader advancementLoader)
      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 Laln;c(Lals;)V
    • load

      private void load(ServerAdvancementLoader advancementLoader)
      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 Laln;d(Lals;)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 Laln;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 Laln;a(Lals;Laln$a;)V
    • createProgressMap

      private PlayerAdvancementTracker.ProgressMap 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 Laln;c()Laln$a;
    • grantCriterion

      public boolean grantCriterion(AdvancementEntry advancement, String criterionName)
      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 Laln;a(Laf;Ljava/lang/String;)Z
    • revokeCriterion

      public boolean revokeCriterion(AdvancementEntry advancement, String criterionName)
      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 Laln;b(Laf;Ljava/lang/String;)Z
    • onStatusUpdate

      private void onStatusUpdate(AdvancementEntry advancement)
      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 Laln;c(Laf;)V
    • beginTracking

      private void beginTracking(AdvancementEntry advancement)
      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 Laln;d(Laf;)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 Laln;a(Laf;Ljava/lang/String;Lan;)V
    • endTrackingCompleted

      private void endTrackingCompleted(AdvancementEntry advancement)
      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 Laln;e(Laf;)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 Laln;b(Laf;Ljava/lang/String;Lan;)V
    • sendUpdate

      public void sendUpdate(ServerPlayerEntity player)
      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 Laln;b(Larg;)V
    • setDisplayTab

      public void setDisplayTab(@Nullable @Nullable AdvancementEntry advancement)
      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 Laln;a(Laf;)V
    • getProgress

      public AdvancementProgress getProgress(AdvancementEntry advancement)
      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 Laln;b(Laf;)Lah;
    • initProgress

      private void initProgress(AdvancementEntry advancement, AdvancementProgress progress)
      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 Laln;a(Laf;Lah;)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 Laln;a(Lag;Ljava/util/Set;Ljava/util/Set;)V