Class ScenarioData

java.lang.Object
net.fateuhc.plugin.api.data.ScenarioData

public class ScenarioData extends Object
  • 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

      public String getName()
      Get the name of the Scenario.
      Returns:
      String
    • getAlias

      public String getAlias()
      Get the alias of the Scenario.
      Returns:
      String
    • isActive

      public boolean isActive()
      Is the scenario active?
      Returns:
      Boolean
    • getDescription

      public String[] 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