public abstract class AdvancementVisibility
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static AdvancementVisibility |
ALWAYS |
|
static AdvancementVisibility |
HIDDEN |
|
static AdvancementVisibility |
PARENT_GRANTED |
|
static AdvancementVisibility |
VANILLA |
Constructor | Description |
---|---|
AdvancementVisibility() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
|
boolean |
isAlwaysVisibleWhenAdvancementAfterIsVisible() |
|
abstract boolean |
isVisible(org.bukkit.entity.Player player,
Advancement advancement) |
|
static AdvancementVisibility |
parseVisibility(java.lang.String name) |
Parses a visibility
|
public static final AdvancementVisibility ALWAYS
public static final AdvancementVisibility PARENT_GRANTED
public static final AdvancementVisibility VANILLA
public static final AdvancementVisibility HIDDEN
public abstract boolean isVisible(org.bukkit.entity.Player player, Advancement advancement)
player
- Player to checkadvancement
- Advancement to checkpublic boolean isAlwaysVisibleWhenAdvancementAfterIsVisible()
public java.lang.String getName()
ALWAYS
, PARENT_GRANTED
, VANILLA
, HIDDEN
public static AdvancementVisibility parseVisibility(java.lang.String name)