Package net.minecraft.advancements
Class PlayerAdvancements
java.lang.Object
net.minecraft.advancements.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.apache.logging.log4j.Logger
private ServerPlayerEntity
private final PlayerList
private final Set<Advancement>
private static final com.google.gson.reflect.TypeToken<Map<ResourceLocation,
AdvancementProgress>> private final Set<Advancement>
private final Set<Advancement>
-
Constructor Summary
ConstructorDescriptionPlayerAdvancements
(com.mojang.datafixers.DataFixer p_i232594_1_, PlayerList p_i232594_2_, AdvancementManager p_i232594_3_, File p_i232594_4_, ServerPlayerEntity p_i232594_5_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
award
(Advancement p_192750_1_, String p_192750_2_) private void
checkForAutomaticTriggers
(AdvancementManager p_240920_1_) private void
private void
ensureVisibility
(Advancement p_192742_1_) void
flushDirty
(ServerPlayerEntity p_192741_1_) getOrStartProgress
(Advancement p_192747_1_) private boolean
hasCompletedChildrenOrSelf
(Advancement p_192746_1_) private void
load
(AdvancementManager p_240921_1_) private void
registerListeners
(Advancement p_193764_1_) private void
registerListeners
(AdvancementManager p_240919_1_) void
reload
(AdvancementManager p_240918_1_) boolean
revoke
(Advancement p_192744_1_, String p_192744_2_) void
save()
void
setPlayer
(ServerPlayerEntity p_192739_1_) void
setSelectedTab
(Advancement p_194220_1_) private boolean
shouldBeVisible
(Advancement p_192738_1_) private void
startProgress
(Advancement p_192743_1_, AdvancementProgress p_192743_2_) void
private void
unregisterListeners
(Advancement p_193765_1_)
-
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
-
file
-
advancements
-
visible
-
visibilityChanged
-
progressChanged
-
player
-
lastSelectedTab
-
isFirstPacket
private boolean isFirstPacket
-
-
Constructor Details
-
PlayerAdvancements
public PlayerAdvancements(com.mojang.datafixers.DataFixer p_i232594_1_, PlayerList p_i232594_2_, AdvancementManager p_i232594_3_, File p_i232594_4_, ServerPlayerEntity p_i232594_5_)
-
-
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
-