Class PlayerAdvancements

java.lang.Object
net.minecraft.server.PlayerAdvancements

public class PlayerAdvancements extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • VISIBILITY_DEPTH

      private static final int VISIBILITY_DEPTH
      See Also:
      Constant Field Values
    • GSON

      private static final com.google.gson.Gson GSON
    • TYPE_TOKEN

      private static final com.google.gson.reflect.TypeToken<Map<ResourceLocation,​AdvancementProgress>> TYPE_TOKEN
    • dataFixer

      private final com.mojang.datafixers.DataFixer dataFixer
    • playerList

      private final PlayerList playerList
    • file

      private final File file
    • advancements

      private final Map<Advancement,​AdvancementProgress> advancements
    • visible

      private final Set<Advancement> visible
    • visibilityChanged

      private final Set<Advancement> visibilityChanged
    • progressChanged

      private final Set<Advancement> progressChanged
    • player

      private ServerPlayer player
    • lastSelectedTab

      @Nullable private Advancement lastSelectedTab
    • isFirstPacket

      private boolean isFirstPacket
  • Constructor Details

  • Method Details

    • setPlayer

      public void setPlayer(ServerPlayer p_135980_)
    • stopListening

      public void stopListening()
    • reload

      public void reload(ServerAdvancementManager p_135982_)
    • registerListeners

      private void registerListeners(ServerAdvancementManager p_135995_)
    • ensureAllVisible

      private void ensureAllVisible()
    • checkForAutomaticTriggers

      private void checkForAutomaticTriggers(ServerAdvancementManager p_136003_)
    • load

      private void load(ServerAdvancementManager p_136007_)
    • save

      public void save()
    • award

      public boolean award(Advancement p_135989_, String p_135990_)
    • revoke

      public boolean revoke(Advancement p_135999_, String p_136000_)
    • registerListeners

      private void registerListeners(Advancement p_136005_)
    • unregisterListeners

      private void unregisterListeners(Advancement p_136009_)
    • flushDirty

      public void flushDirty(ServerPlayer p_135993_)
    • setSelectedTab

      public void setSelectedTab(@Nullable Advancement p_135984_)
    • getOrStartProgress

      public AdvancementProgress getOrStartProgress(Advancement p_135997_)
    • startProgress

      private void startProgress(Advancement p_135986_, AdvancementProgress p_135987_)
    • ensureVisibility

      private void ensureVisibility(Advancement p_136011_)
    • shouldBeVisible

      private boolean shouldBeVisible(Advancement p_136013_)
    • hasCompletedChildrenOrSelf

      private boolean hasCompletedChildrenOrSelf(Advancement p_136015_)