Package net.minecraft.advancement
Class PlayerAdvancementTracker
java.lang.Object
net.minecraft.advancement.PlayerAdvancementTracker
public class PlayerAdvancementTracker extends Object
-
Field Summary
Fields Modifier and Type Field Description private File
advancementFile
private Map<Advancement,AdvancementProgress>
advancementToProgress
private Advancement
currentDisplayTab
private boolean
dirty
private com.mojang.datafixers.DataFixer
field_25324
private PlayerManager
field_25325
private static Gson
GSON
private static TypeToken<Map<Identifier,AdvancementProgress>>
JSON_TYPE
private static Logger
LOGGER
private ServerPlayerEntity
owner
private Set<Advancement>
progressUpdates
private Set<Advancement>
visibilityUpdates
private Set<Advancement>
visibleAdvancements
-
Constructor Summary
Constructors Constructor Description PlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader serverAdvancementLoader, File file, ServerPlayerEntity serverPlayerEntity)
-
Method Summary
Modifier and Type Method Description private void
beginTracking(Advancement advancement)
private void
beginTrackingAllAdvancements(ServerAdvancementLoader advancementLoader)
private boolean
canSee(Advancement advancement)
void
clearCriteria()
private void
endTrackingCompleted(Advancement advancement)
AdvancementProgress
getProgress(Advancement advancement)
boolean
grantCriterion(Advancement advancement, String criterionName)
private boolean
hasChildrenDone(Advancement advancement)
private void
initProgress(Advancement advancement, AdvancementProgress progress)
private void
load(ServerAdvancementLoader advancementLoader)
void
reload(ServerAdvancementLoader advancementLoader)
boolean
revokeCriterion(Advancement advancement, String criterionName)
private void
rewardEmptyAdvancements(ServerAdvancementLoader advancementLoader)
void
save()
void
sendUpdate(ServerPlayerEntity player)
void
setDisplayTab(Advancement advancement)
void
setOwner(ServerPlayerEntity owner)
private void
updateCompleted()
private void
updateDisplay(Advancement advancement)
-
Field Details
-
LOGGER
-
GSON
-
JSON_TYPE
-
field_25324
private final com.mojang.datafixers.DataFixer field_25324 -
field_25325
-
advancementFile
-
advancementToProgress
-
visibleAdvancements
-
visibilityUpdates
-
progressUpdates
-
owner
-
currentDisplayTab
-
dirty
private boolean dirty
-
-
Constructor Details
-
PlayerAdvancementTracker
public PlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader serverAdvancementLoader, File file, ServerPlayerEntity serverPlayerEntity)
-
-
Method Details
-
setOwner
-
clearCriteria
public void clearCriteria() -
reload
-
beginTrackingAllAdvancements
-
updateCompleted
private void updateCompleted() -
rewardEmptyAdvancements
-
load
-
save
public void save() -
grantCriterion
-
revokeCriterion
-
beginTracking
-
endTrackingCompleted
-
sendUpdate
-
setDisplayTab
-
getProgress
-
initProgress
-
updateDisplay
-
canSee
-
hasChildrenDone
-