Enum Class Items

java.lang.Object
java.lang.Enum<Items>
ua.mcchickenstudio.opencreative.settings.items.Items
All Implemented Interfaces:
Serializable, Comparable<Items>, Constable

public enum Items extends Enum<Items>

Items

This enum represents main items, that will be given to players by doing something: joining the lobby, connecting to world or entering to the coding world.

To get item, use get(Player) ()} method.

  • Enum Constant Details

    • GAMES

      public static final Items GAMES
      For opening Worlds Browser menu in lobby.
    • OWN

      public static final Items OWN
      For opening Own Worlds Browser menu in lobby.
    • CHANGELOGS

      public static final Items CHANGELOGS
      For viewing Changelogs in lobby.
    • WORLD_SETTINGS

      public static final Items WORLD_SETTINGS
      For opening World Settings menu in world, as its owner.
    • FLY_SPEED_CHANGER

      public static final Items FLY_SPEED_CHANGER
      For changing speed of flight in coding world.
    • LINES_CONTROLLER

      public static final Items LINES_CONTROLLER
      For moving lines and marking them in coding world.
    • ARROW_NOT

      public static final Items ARROW_NOT
      For marking or unmarking condition as opposed.
    • DEBUG_TORCH

      public static final Items DEBUG_TORCH
      For marking or unmarking executor whether it should send debug messages.
    • CODING_BOOK

      public static final Items CODING_BOOK
      For viewing coding tutorial in coding world.
    • VARIABLES

      public static final Items VARIABLES
      For viewing values list in coding world.
    • EVENT_PLAYER

      public static final Items EVENT_PLAYER
    • EVENT_WORLD

      public static final Items EVENT_WORLD
    • EVENT_ENTITY

      public static final Items EVENT_ENTITY
    • CYCLE

      public static final Items CYCLE
    • METHOD

      public static final Items METHOD
    • FUNCTION

      public static final Items FUNCTION
    • PLAYER_ACTION

      public static final Items PLAYER_ACTION
    • WORLD_ACTION

      public static final Items WORLD_ACTION
    • ENTITY_ACTION

      public static final Items ENTITY_ACTION
    • VARIABLE_ACTION

      public static final Items VARIABLE_ACTION
    • REPEAT_ACTION

      public static final Items REPEAT_ACTION
    • CONTROLLER_ACTION

      public static final Items CONTROLLER_ACTION
    • CONTROL_ACTION

      public static final Items CONTROL_ACTION
    • SELECTION_ACTION

      public static final Items SELECTION_ACTION
    • LAUNCH_FUNCTION_ACTION

      public static final Items LAUNCH_FUNCTION_ACTION
    • LAUNCH_METHOD_ACTION

      public static final Items LAUNCH_METHOD_ACTION
    • PLAYER_CONDITION

      public static final Items PLAYER_CONDITION
    • WORLD_CONDITION

      public static final Items WORLD_CONDITION
    • ENTITY_CONDITION

      public static final Items ENTITY_CONDITION
    • ELSE_CONDITION

      public static final Items ELSE_CONDITION
    • VARIABLE_CONDITION

      public static final Items VARIABLE_CONDITION
  • Method Details

    • values

      public static Items[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Items valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getById

      @Nullable public static @Nullable Items getById(@NotNull @NotNull String id)
      Returns items enum by text.
      Parameters:
      id - id to get items enum.
      Returns:
      items type, or null - if not exists.
    • getMaterial

      @NotNull public @NotNull org.bukkit.Material getMaterial()
      Returns material of main item.
      Returns:
      material.
    • get

      public org.bukkit.inventory.ItemStack get(@NotNull @NotNull org.bukkit.entity.Player player)
      Creates and returns item, that can be given to player.
      Returns:
      item to give to player.