Class TransferKeyValue

java.lang.Object
ua.mcchickenstudio.opencreative.coding.values.EventValue
ua.mcchickenstudio.opencreative.coding.values.events.TransferKeyValue
All Implemented Interfaces:
ExtensionContent

public final class TransferKeyValue extends EventValue
  • Constructor Details

    • TransferKeyValue

      public TransferKeyValue()
  • Method Details

    • getValue

      @Nullable public @Nullable Object getValue(@NotNull @NotNull ActionsHandler handler, @NotNull @NotNull Action action, @Nullable @Nullable org.bukkit.entity.Entity entity)
      Description copied from class: EventValue
      Returns a value that will be set instead of event value name tag item.
      Specified by:
      getValue in class EventValue
      Parameters:
      handler - handler of action to get value.
      action - action to get value.
      entity - entity to get value, can be null.
      Returns:
      string, number, boolean, item, location, vector, or null.
    • getExtensionId

      @NotNull public @NotNull String getExtensionId()
      Description copied from interface: ExtensionContent
      Returns lower-cased simple id of extension. Will be used to identify author of content.

      ID "default" is reserved for OpenCreative+ developers.

      Returns:
      id of extension.
    • getDescription

      @NotNull public @NotNull String getDescription()
      Description copied from interface: ExtensionContent
      Returns description of extension content. Describes purpose of new additional content.
      Returns:
      description of content.