Class PlayerAdvancements

java.lang.Object
net.minecraft.advancements.PlayerAdvancements

public class PlayerAdvancements extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • 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 ServerPlayerEntity player
    • lastSelectedTab

      @Nullable private Advancement lastSelectedTab
    • isFirstPacket

      private boolean isFirstPacket
  • Constructor Details

  • Method Details

    • setPlayer

      public void setPlayer(ServerPlayerEntity p_192739_1_)
    • stopListening

      public void stopListening()
    • reload

      public void reload(AdvancementManager p_240918_1_)
    • registerListeners

      private void registerListeners(AdvancementManager p_240919_1_)
    • ensureAllVisible

      private void ensureAllVisible()
    • checkForAutomaticTriggers

      private void checkForAutomaticTriggers(AdvancementManager p_240920_1_)
    • load

      private void load(AdvancementManager p_240921_1_)
    • save

      public void save()
    • award

      public boolean award(Advancement p_192750_1_, String p_192750_2_)
    • revoke

      public boolean revoke(Advancement p_192744_1_, String p_192744_2_)
    • registerListeners

      private void registerListeners(Advancement p_193764_1_)
    • unregisterListeners

      private void unregisterListeners(Advancement p_193765_1_)
    • flushDirty

      public void flushDirty(ServerPlayerEntity p_192741_1_)
    • setSelectedTab

      public void setSelectedTab(@Nullable Advancement p_194220_1_)
    • getOrStartProgress

      public AdvancementProgress getOrStartProgress(Advancement p_192747_1_)
    • startProgress

      private void startProgress(Advancement p_192743_1_, AdvancementProgress p_192743_2_)
    • ensureVisibility

      private void ensureVisibility(Advancement p_192742_1_)
    • shouldBeVisible

      private boolean shouldBeVisible(Advancement p_192738_1_)
    • hasCompletedChildrenOrSelf

      private boolean hasCompletedChildrenOrSelf(Advancement p_192746_1_)