Package net.minecraft.server
Class PlayerAdvancements
java.lang.Object
net.minecraft.server.PlayerAdvancements
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Advancement,
AdvancementProgress> private final com.mojang.datafixers.DataFixer
private final File
private static final com.google.gson.Gson
private boolean
private Advancement
private static final org.slf4j.Logger
private ServerPlayer
private final PlayerList
private final Set<Advancement>
private static final com.google.gson.reflect.TypeToken<Map<ResourceLocation,
AdvancementProgress>> private static final int
private final Set<Advancement>
private final Set<Advancement>
-
Constructor Summary
ConstructorDescriptionPlayerAdvancements
(com.mojang.datafixers.DataFixer p_135973_, PlayerList p_135974_, ServerAdvancementManager p_135975_, File p_135976_, ServerPlayer p_135977_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
award
(Advancement p_135989_, String p_135990_) private void
private void
private void
ensureVisibility
(Advancement p_136011_) void
flushDirty
(ServerPlayer p_135993_) getOrStartProgress
(Advancement p_135997_) private boolean
hasCompletedChildrenOrSelf
(Advancement p_136015_) private void
load
(ServerAdvancementManager p_136007_) private void
registerListeners
(Advancement p_136005_) private void
registerListeners
(ServerAdvancementManager p_135995_) void
reload
(ServerAdvancementManager p_135982_) boolean
revoke
(Advancement p_135999_, String p_136000_) void
save()
void
setPlayer
(ServerPlayer p_135980_) void
setSelectedTab
(Advancement p_135984_) private boolean
shouldBeVisible
(Advancement p_136013_) private void
startProgress
(Advancement p_135986_, AdvancementProgress p_135987_) void
private void
unregisterListeners
(Advancement p_136009_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VISIBILITY_DEPTH
private static final int VISIBILITY_DEPTH- See Also:
-
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
-
file
-
advancements
-
visible
-
visibilityChanged
-
progressChanged
-
player
-
lastSelectedTab
-
isFirstPacket
private boolean isFirstPacket
-
-
Constructor Details
-
PlayerAdvancements
public PlayerAdvancements(com.mojang.datafixers.DataFixer p_135973_, PlayerList p_135974_, ServerAdvancementManager p_135975_, File p_135976_, ServerPlayer p_135977_)
-
-
Method Details
-
setPlayer
-
stopListening
public void stopListening() -
reload
-
registerListeners
-
ensureAllVisible
private void ensureAllVisible() -
checkForAutomaticTriggers
-
load
-
save
public void save() -
award
-
revoke
-
registerListeners
-
unregisterListeners
-
flushDirty
-
setSelectedTab
-
getOrStartProgress
-
startProgress
-
ensureVisibility
-
shouldBeVisible
-
hasCompletedChildrenOrSelf
-