Class PlayerAdvancements


  • public class PlayerAdvancements
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

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

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

        private final java.io.File file
      • visible

        private final java.util.Set<Advancement> visible
      • visibilityChanged

        private final java.util.Set<Advancement> visibilityChanged
      • progressChanged

        private final java.util.Set<Advancement> progressChanged
      • lastSelectedTab

        @Nullable
        private Advancement lastSelectedTab
      • isFirstPacket

        private boolean isFirstPacket
    • Method Detail

      • stopListening

        public void stopListening()
      • ensureAllVisible

        private void ensureAllVisible()
      • checkForAutomaticTriggers

        private void checkForAutomaticTriggers​(AdvancementManager p_240920_1_)
      • save

        public void save()
      • award

        public boolean award​(Advancement p_192750_1_,
                             java.lang.String p_192750_2_)
      • revoke

        public boolean revoke​(Advancement p_192744_1_,
                              java.lang.String p_192744_2_)
      • registerListeners

        private void registerListeners​(Advancement p_193764_1_)
      • unregisterListeners

        private void unregisterListeners​(Advancement p_193765_1_)
      • setSelectedTab

        public void setSelectedTab​(@Nullable
                                   Advancement p_194220_1_)
      • ensureVisibility

        private void ensureVisibility​(Advancement p_192742_1_)
      • shouldBeVisible

        private boolean shouldBeVisible​(Advancement p_192738_1_)
      • hasCompletedChildrenOrSelf

        private boolean hasCompletedChildrenOrSelf​(Advancement p_192746_1_)