Class TransferKeyValue
java.lang.Object
ua.mcchickenstudio.opencreative.coding.values.EventValue
ua.mcchickenstudio.opencreative.coding.values.events.TransferKeyValue
- All Implemented Interfaces:
ExtensionContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns description of extension content.@NotNull StringReturns lower-cased simple id of extension.@Nullable ObjectgetValue(@NotNull ActionsHandler handler, @NotNull Action action, @Nullable org.bukkit.entity.Entity entity) Returns a value that will be set instead of event value name tag item.Methods inherited from class EventValue
equals, getCategory, getDisplayIcon, getID, getLocaleName, getName, hashCodeModifier and TypeMethodDescriptionboolean@NotNull MenusCategoryReturns a category, that event value belongs to.@NotNull org.bukkit.inventory.ItemStackReturns an icon that will be used in event values menus.final @NotNull StringgetID()Returns id of event value, that will be used to find it in registry.@NotNull StringReturns localized name of event value, that will be used in menus.@NotNull StringgetName()Returns name of event value for displaying in registry by converting id.inthashCode()
-
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:EventValueReturns a value that will be set instead of event value name tag item.- Specified by:
getValuein classEventValue- 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
Description copied from interface:ExtensionContentReturns 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
Description copied from interface:ExtensionContentReturns description of extension content. Describes purpose of new additional content.- Returns:
- description of content.
-