public class PlayerAdvancements
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.google.gson.Gson |
GSON |
private boolean |
isFirstPacket |
private Advancement |
lastSelectedTab |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static com.google.gson.reflect.TypeToken<java.util.Map<ResourceLocation,AdvancementProgress>> |
MAP_TOKEN |
private EntityPlayerMP |
player |
private java.util.Map<Advancement,AdvancementProgress> |
progress |
private java.util.Set<Advancement> |
progressChanged |
private java.io.File |
progressFile |
private MinecraftServer |
server |
private java.util.Set<Advancement> |
visibilityChanged |
private java.util.Set<Advancement> |
visible |
Constructor and Description |
---|
PlayerAdvancements(MinecraftServer server,
java.io.File p_i47422_2_,
EntityPlayerMP player) |
Modifier and Type | Method and Description |
---|---|
private void |
checkForAutomaticTriggers() |
void |
dispose() |
private void |
ensureAllVisible() |
private void |
ensureVisibility(Advancement p_192742_1_) |
void |
flushDirty(EntityPlayerMP p_192741_1_) |
AdvancementProgress |
getProgress(Advancement advancementIn) |
boolean |
grantCriterion(Advancement p_192750_1_,
java.lang.String p_192750_2_) |
private boolean |
hasCompletedChildrenOrSelf(Advancement p_192746_1_) |
private void |
load() |
private void |
registerListeners() |
private void |
registerListeners(Advancement p_193764_1_) |
void |
reload() |
boolean |
revokeCriterion(Advancement p_192744_1_,
java.lang.String p_192744_2_) |
void |
save() |
void |
setPlayer(EntityPlayerMP player) |
void |
setSelectedTab(Advancement p_194220_1_) |
private boolean |
shouldBeVisible(Advancement p_192738_1_) |
private void |
startProgress(Advancement p_192743_1_,
AdvancementProgress p_192743_2_) |
private void |
unregisterListeners(Advancement p_193765_1_) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON
private static final com.google.gson.reflect.TypeToken<java.util.Map<ResourceLocation,AdvancementProgress>> MAP_TOKEN
private final MinecraftServer server
private final java.io.File progressFile
private final java.util.Map<Advancement,AdvancementProgress> progress
private final java.util.Set<Advancement> visible
private final java.util.Set<Advancement> visibilityChanged
private final java.util.Set<Advancement> progressChanged
private EntityPlayerMP player
@Nullable private Advancement lastSelectedTab
private boolean isFirstPacket
public PlayerAdvancements(MinecraftServer server, java.io.File p_i47422_2_, EntityPlayerMP player)
public void setPlayer(EntityPlayerMP player)
public void dispose()
public void reload()
private void registerListeners()
private void ensureAllVisible()
private void checkForAutomaticTriggers()
private void load()
public void save()
public boolean grantCriterion(Advancement p_192750_1_, java.lang.String p_192750_2_)
public boolean revokeCriterion(Advancement p_192744_1_, java.lang.String p_192744_2_)
private void registerListeners(Advancement p_193764_1_)
private void unregisterListeners(Advancement p_193765_1_)
public void flushDirty(EntityPlayerMP p_192741_1_)
public void setSelectedTab(@Nullable Advancement p_194220_1_)
public AdvancementProgress getProgress(Advancement advancementIn)
private void startProgress(Advancement p_192743_1_, AdvancementProgress p_192743_2_)
private void ensureVisibility(Advancement p_192742_1_)
private boolean shouldBeVisible(Advancement p_192738_1_)
private boolean hasCompletedChildrenOrSelf(Advancement p_192746_1_)