Modifier and Type | Method | Description |
---|---|---|
static Advancement |
Advancement.fromJSON(com.google.gson.JsonElement json) |
Generates an Advancement
|
static Advancement |
Advancement.fromJSON(java.lang.String json) |
Generates an Advancement
|
Advancement |
Advancement.getParent() |
|
Advancement |
AdvancementDisplay.getPositionOrigin() |
|
Advancement |
Advancement.getRootAdvancement() |
Modifier and Type | Method | Description |
---|---|---|
java.util.HashSet<Advancement> |
Advancement.getChildren() |
|
java.util.List<Advancement> |
Advancement.getRow() |
|
java.util.List<Advancement> |
Advancement.getRowAfter() |
|
java.util.List<Advancement> |
Advancement.getRowUntil() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
AdvancementDisplay.isVisible(org.bukkit.entity.Player player,
Advancement advancement) |
|
abstract boolean |
AdvancementVisibility.isVisible(org.bukkit.entity.Player player,
Advancement advancement) |
|
void |
AdvancementDisplay.setPositionOrigin(Advancement positionOrigin) |
Changes the advancement that marks the origin of the coordinates
|
Constructor | Description |
---|---|
Advancement(Advancement parent,
NameKey name,
AdvancementDisplay display) |
Modifier and Type | Method | Description |
---|---|---|
Advancement |
AdvancementGrantEvent.getAdvancement() |
|
Advancement |
AdvancementRevokeEvent.getAdvancement() |
|
Advancement |
CriteriaGrantEvent.getAdvancement() |
|
Advancement |
CriteriaProgressChangeEvent.getAdvancement() |
|
Advancement |
CriteriaRevokeEvent.getAdvancement() |
Constructor | Description |
---|---|
AdvancementGrantEvent(AdvancementManager manager,
Advancement advancement,
org.bukkit.entity.Player player,
boolean displayMessage) |
|
AdvancementRevokeEvent(AdvancementManager advancementManager_v2,
Advancement advancement,
org.bukkit.entity.Player player) |
|
CriteriaGrantEvent(AdvancementManager manager,
Advancement advancement,
java.lang.String[] criteria,
org.bukkit.entity.Player player) |
|
CriteriaProgressChangeEvent(AdvancementManager manager,
Advancement advancement,
org.bukkit.entity.Player player,
int progressBefore,
int progress) |
|
CriteriaRevokeEvent(AdvancementManager manager,
Advancement advancement,
java.lang.String[] criteria,
org.bukkit.entity.Player player) |
Modifier and Type | Method | Description |
---|---|---|
Advancement |
OfflineAdvancementGrantEvent.getAdvancement() |
|
Advancement |
OfflineAdvancementRevokeEvent.getAdvancement() |
|
Advancement |
OfflineCriteriaGrantEvent.getAdvancement() |
|
Advancement |
OfflineCriteriaProgressChangeEvent.getAdvancement() |
|
Advancement |
OfflineCriteriaRevokeEvent.getAdvancement() |
Constructor | Description |
---|---|
OfflineAdvancementGrantEvent(AdvancementManager manager,
Advancement advancement,
java.util.UUID uuid) |
|
OfflineAdvancementRevokeEvent(AdvancementManager manager,
Advancement advancement,
java.util.UUID uuid) |
|
OfflineCriteriaGrantEvent(AdvancementManager manager,
Advancement advancement,
java.lang.String[] criteria,
java.util.UUID uuid) |
|
OfflineCriteriaProgressChangeEvent(AdvancementManager manager,
Advancement advancement,
java.util.UUID uuid,
int progressBefore,
int progress) |
|
OfflineCriteriaRevokeEvent(AdvancementManager manager,
Advancement advancement,
java.lang.String[] criteria,
java.util.UUID uuid) |
Modifier and Type | Method | Description |
---|---|---|
Advancement |
AdvancementManager.getAdvancement(NameKey name) |
Modifier and Type | Method | Description |
---|---|---|
java.util.ArrayList<Advancement> |
AdvancementManager.getAdvancements() |
|
java.util.ArrayList<Advancement> |
AdvancementManager.getAdvancements(java.lang.String namespace) |
Modifier and Type | Method | Description |
---|---|---|
void |
AdvancementManager.addAdvancement(Advancement... advancementsAdded) |
Adds advancements or updates one advancement
|
void |
AdvancementManager.displayMessage(org.bukkit.entity.Player player,
Advancement advancement) |
Displays a message to all players in the manager
Note that this doesn't grant the advancement |
int |
AdvancementManager.getCriteriaProgress(java.util.UUID uuid,
Advancement advancement) |
|
int |
AdvancementManager.getCriteriaProgress(org.bukkit.entity.Player player,
Advancement advancement) |
|
void |
AdvancementManager.grantAdvancement(java.util.UUID uuid,
Advancement advancement) |
Grants an advancement, also works with offline players
|
void |
AdvancementManager.grantAdvancement(org.bukkit.entity.Player player,
Advancement advancement) |
Grants an advancement
|
void |
AdvancementManager.grantCriteria(java.util.UUID uuid,
Advancement advancement,
java.lang.String... criteria) |
Grans criteria for an advancement, also works with offline players
|
void |
AdvancementManager.grantCriteria(org.bukkit.entity.Player player,
Advancement advancement,
java.lang.String... criteria) |
Grants criteria for an advancement
|
void |
AdvancementManager.loadCustomProgress(java.util.UUID uuid,
java.lang.String json,
Advancement... advancementsLoaded) |
Deprecated.
|
void |
AdvancementManager.loadCustomProgress(org.bukkit.entity.Player player,
java.lang.String json,
Advancement... advancementsLoaded) |
Loads the progress with a custom JSON String
|
void |
AdvancementManager.loadProgress(java.util.UUID uuid,
Advancement... advancementsLoaded) |
Deprecated.
|
void |
AdvancementManager.loadProgress(org.bukkit.entity.Player player,
Advancement... advancementsLoaded) |
Loads the progress
|
void |
AdvancementManager.removeAdvancement(Advancement... advancementsRemoved) |
Removes an advancement from the manager
|
void |
AdvancementManager.revokeAdvancement(java.util.UUID uuid,
Advancement advancement) |
Revokes an advancement, also works with offline players
|
void |
AdvancementManager.revokeAdvancement(org.bukkit.entity.Player player,
Advancement advancement) |
Revokes an advancement
|
void |
AdvancementManager.revokeCriteria(java.util.UUID uuid,
Advancement advancement,
java.lang.String... criteria) |
Revokes criteria for an advancement, also works with offline players
|
void |
AdvancementManager.revokeCriteria(org.bukkit.entity.Player player,
Advancement advancement,
java.lang.String... criteria) |
Revokes criteria for an advancement
|
void |
AdvancementManager.setCriteriaProgress(java.util.UUID uuid,
Advancement advancement,
int progress) |
Sets the criteria progress for an advancement, also works for offline players
Might not work as expected when using features for experts Is the only method triggering CriteriaProgressChangeEvent |
void |
AdvancementManager.setCriteriaProgress(org.bukkit.entity.Player player,
Advancement advancement,
int progress) |
Sets the criteria progress for an advancement
Might not work as expected when using features for experts Is the only method triggering CriteriaProgressChangeEvent |
void |
AdvancementManager.unloadProgress(java.util.UUID uuid,
Advancement... advancements) |
Unloads the progress for the given advancements
Does not work for Online Players! |
void |
AdvancementManager.updateAllPossiblyAffectedVisibilities(org.bukkit.entity.Player player,
Advancement from) |
Updates all possibly affected visibilities for all parents and childs
|
void |
AdvancementManager.updateProgress(org.bukkit.entity.Player player,
Advancement... advancementsUpdated) |
Updates advancement progress for a player
|
void |
AdvancementManager.updateVisibility(org.bukkit.entity.Player player,
Advancement advancement) |
Updates the visibility
|