Class EntityLocationDirectionValue
java.lang.Object
ua.mcchickenstudio.opencreative.coding.values.EventValue
ua.mcchickenstudio.opencreative.coding.values.VectorEventValue
ua.mcchickenstudio.opencreative.coding.values.entity.EntityLocationDirectionValue
- 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 org.bukkit.util.VectorgetVector(@NotNull ActionsHandler handler, @NotNull Action action, @Nullable org.bukkit.entity.Entity entity) Returns a vector that can be got from player, event, action, or null.Methods inherited from class VectorEventValue
getValueModifier and TypeMethodDescriptionfinal @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
-
EntityLocationDirectionValue
public EntityLocationDirectionValue()
-
-
Method Details
-
getVector
@Nullable public @Nullable org.bukkit.util.Vector getVector(@NotNull @NotNull ActionsHandler handler, @NotNull @NotNull Action action, @Nullable @Nullable org.bukkit.entity.Entity entity) Description copied from class:VectorEventValueReturns a vector that can be got from player, event, action, or null.- Specified by:
getVectorin classVectorEventValue- Returns:
- 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.
-