Package net.minecraft.server
Class PlayerAdvancements
java.lang.Object
net.minecraft.server.PlayerAdvancements
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.datafixers.DataFixer
private static final com.google.gson.Gson
private boolean
private Advancement
private static final org.slf4j.Logger
private ServerPlayer
private final PlayerList
private final Path
private final Map<Advancement,
AdvancementProgress> private final Set<Advancement>
private final Set<Advancement>
private static final com.google.gson.reflect.TypeToken<Map<ResourceLocation,
AdvancementProgress>> private final Set<Advancement>
-
Constructor Summary
ConstructorDescriptionPlayerAdvancements
(com.mojang.datafixers.DataFixer p_265655_, PlayerList p_265703_, ServerAdvancementManager p_265166_, Path p_265268_, ServerPlayer p_265673_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
award
(Advancement p_135989_, String p_135990_) private void
void
flushDirty
(ServerPlayer p_135993_) getOrStartProgress
(Advancement p_135997_) private void
load
(ServerAdvancementManager p_136007_) private void
markForVisibilityUpdate
(Advancement p_265528_) 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 void
startProgress
(Advancement p_135986_, AdvancementProgress p_135987_) void
private void
unregisterListeners
(Advancement p_136009_) private void
updateTreeVisibility
(Advancement p_265158_, Set<Advancement> p_265206_, Set<ResourceLocation> p_265593_)
-
Field Details
-
LOGGER
private static final org.slf4j.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
-
playerSavePath
-
progress
-
visible
-
progressChanged
-
rootsToUpdate
-
player
-
lastSelectedTab
-
isFirstPacket
private boolean isFirstPacket
-
-
Constructor Details
-
PlayerAdvancements
public PlayerAdvancements(com.mojang.datafixers.DataFixer p_265655_, PlayerList p_265703_, ServerAdvancementManager p_265166_, Path p_265268_, ServerPlayer p_265673_)
-
-
Method Details
-
setPlayer
-
stopListening
public void stopListening() -
reload
-
registerListeners
-
checkForAutomaticTriggers
-
load
-
save
public void save() -
award
-
revoke
-
markForVisibilityUpdate
-
registerListeners
-
unregisterListeners
-
flushDirty
-
setSelectedTab
-
getOrStartProgress
-
startProgress
-
updateTreeVisibility
private void updateTreeVisibility(Advancement p_265158_, Set<Advancement> p_265206_, Set<ResourceLocation> p_265593_)
-