Package net.minecraft.server
Class PlayerAdvancements
java.lang.Object
net.minecraft.server.PlayerAdvancements
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec
<PlayerAdvancements.Data> private static final com.google.gson.Gson
private boolean
private AdvancementHolder
private static final org.slf4j.Logger
private ServerPlayer
private final PlayerList
private final Path
private final Map
<AdvancementHolder, AdvancementProgress> private final Set
<AdvancementHolder> private final Set
<AdvancementNode> private AdvancementTree
private final Set
<AdvancementHolder> -
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 TypeMethodDescriptionprivate void
applyFrom
(ServerAdvancementManager p_301166_, PlayerAdvancements.Data p_301198_) private PlayerAdvancements.Data
asData()
boolean
award
(AdvancementHolder p_300979_, String p_135990_) private void
void
flushDirty
(ServerPlayer p_135993_) getOrStartProgress
(AdvancementHolder p_301185_) private void
load
(ServerAdvancementManager p_136007_) private void
markForVisibilityUpdate
(AdvancementHolder p_301097_) private <T extends CriterionTriggerInstance>
voidregisterListener
(AdvancementHolder p_301059_, String p_300946_, Criterion<T> p_300887_) private void
registerListeners
(AdvancementHolder p_301053_) private void
registerListeners
(ServerAdvancementManager p_135995_) void
reload
(ServerAdvancementManager p_135982_) private <T extends CriterionTriggerInstance>
voidremoveListener
(AdvancementHolder p_301213_, String p_301253_, Criterion<T> p_301311_) boolean
revoke
(AdvancementHolder p_301073_, String p_136000_) void
save()
void
setPlayer
(ServerPlayer p_135980_) void
setSelectedTab
(AdvancementHolder p_301180_) private void
startProgress
(AdvancementHolder p_300931_, AdvancementProgress p_135987_) void
private void
unregisterListeners
(AdvancementHolder p_301082_) private void
updateTreeVisibility
(AdvancementNode p_301178_, Set<AdvancementHolder> 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 -
playerList
-
playerSavePath
-
tree
-
progress
-
visible
-
progressChanged
-
rootsToUpdate
-
player
-
lastSelectedTab
-
isFirstPacket
private boolean isFirstPacket -
codec
-
-
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() -
applyFrom
-
asData
-
award
-
revoke
-
markForVisibilityUpdate
-
registerListeners
-
registerListener
private <T extends CriterionTriggerInstance> void registerListener(AdvancementHolder p_301059_, String p_300946_, Criterion<T> p_300887_) -
unregisterListeners
-
removeListener
private <T extends CriterionTriggerInstance> void removeListener(AdvancementHolder p_301213_, String p_301253_, Criterion<T> p_301311_) -
flushDirty
-
setSelectedTab
-
getOrStartProgress
-
startProgress
-
updateTreeVisibility
private void updateTreeVisibility(AdvancementNode p_301178_, Set<AdvancementHolder> p_265206_, Set<ResourceLocation> p_265593_)
-