Enum Class Target

java.lang.Object
java.lang.Enum<Target>
ua.mcchickenstudio.opencreative.coding.blocks.actions.Target
All Implemented Interfaces:
Serializable, Comparable<Target>, Constable

public enum Target extends Enum<Target>

Target

This enum represents targets, that can be specified for executing actions and conditions. Target is a list of entities in world.
Since:
5.0
Version:
5.0
Author:
McChicken Studio
  • Enum Constant Details

    • DEFAULT

      public static final Target DEFAULT
    • SELECTED

      public static final Target SELECTED
    • ALL_PLAYERS

      public static final Target ALL_PLAYERS
    • ALL_ENTITIES

      public static final Target ALL_ENTITIES
    • RANDOM_PLAYER

      public static final Target RANDOM_PLAYER
    • RANDOM_TARGET

      public static final Target RANDOM_TARGET
    • KILLER

      public static final Target KILLER
    • VICTIM

      public static final Target VICTIM
    • LAST_SPAWNED

      public static final Target LAST_SPAWNED
  • Method Details

    • values

      public static Target[] 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 Target 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
    • getByMaterial

      @NotNull public static @NotNull Target getByMaterial(org.bukkit.Material material)
    • getByText

      @NotNull public static @NotNull Target getByText(@NotNull @NotNull String text)
    • getBySign

      @NotNull public static @NotNull Target getBySign(org.bukkit.Location location)
    • getIcon

      public org.bukkit.Material getIcon()
    • isSupportsEventValue

      public boolean isSupportsEventValue()
    • getLocaleName

      @NotNull public @NotNull String getLocaleName()