Package net.fateuhc.plugin.api.data
Class ScenarioData
java.lang.Object
net.fateuhc.plugin.api.data.ScenarioData
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioData(boolean enabled, com.cryptomorin.xseries.XMaterial material, boolean lobbyModeOnlyEdit, String alias, String name, String... description) Create a ScenarioData.ScenarioData(boolean enabled, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Create a ScenarioData. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Get the alias of the Scenario.String[]Get the description of the Scenario.com.cryptomorin.xseries.XMaterialGet the material for the Scenario.getName()Get the name of the Scenario.booleanisActive()Is the scenario active?booleanIs the Scenario be able to be enabled by servers.booleanIs the Scenario only able to be edited in the lobby?org.bukkit.inventory.ItemStackGet the item stack for the scenario.
-
Constructor Details
-
ScenarioData
public ScenarioData(boolean enabled, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Create a ScenarioData.- Parameters:
enabled- Should the Scenario be enabled for servers to use?material- What material should the Scenario show as?alias- What is the alias for the Scenario?name- What is the name of the Scenario?description- What is the description of the Scenario?
-
ScenarioData
public ScenarioData(boolean enabled, com.cryptomorin.xseries.XMaterial material, boolean lobbyModeOnlyEdit, String alias, String name, String... description) Create a ScenarioData.- Parameters:
enabled- Should the Scenario be enabled for servers to use?material- What material should the Scenario show as?lobbyModeOnlyEdit- Should the scenario only be able to be enabled from the lobby?alias- What is the alias for the Scenario?name- What is the name of the Scenario?description- What is the description of the Scenario?
-
-
Method Details
-
isEnabled
public boolean isEnabled()Is the Scenario be able to be enabled by servers.- Returns:
Boolean
-
getName
Get the name of the Scenario.- Returns:
String
-
getAlias
Get the alias of the Scenario.- Returns:
String
-
isActive
public boolean isActive()Is the scenario active?- Returns:
Boolean
-
getDescription
Get the description of the Scenario.- Returns:
- {@link String[}
-
getMaterial
public com.cryptomorin.xseries.XMaterial getMaterial()Get the material for the Scenario.- Returns:
XMaterial
-
isLobbyModeOnlyEdit
public boolean isLobbyModeOnlyEdit()Is the Scenario only able to be edited in the lobby?- Returns:
Boolean
-
toItemStack
public org.bukkit.inventory.ItemStack toItemStack()Get the item stack for the scenario.- Returns:
ItemStack
-