Class VarPlaceholder
java.lang.Object
ua.mcchickenstudio.opencreative.coding.placeholders.Placeholder
ua.mcchickenstudio.opencreative.coding.placeholders.KeyValuePlaceholder
ua.mcchickenstudio.opencreative.coding.placeholders.VarPlaceholder
- 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.@NotNull StringgetName()Returns name of extension content.@Nullable StringparseKeyValue(String type, String name, ActionsHandler handler, Action action) Methods inherited from class KeyValuePlaceholder
getKeys, getPattern, matches, parseMethods inherited from class Placeholder
toString
-
Constructor Details
-
VarPlaceholder
public VarPlaceholder()
-
-
Method Details
-
parseKeyValue
@Nullable public @Nullable String parseKeyValue(String type, String name, ActionsHandler handler, Action action) - Specified by:
parseKeyValuein classKeyValuePlaceholder
-
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.
-
getName
Description copied from interface:ExtensionContentReturns name of extension content. Will be displayed in list of extension content.- Returns:
- name of content.
-
getDescription
Description copied from interface:ExtensionContentReturns description of extension content. Describes purpose of new additional content.- Returns:
- description of content.
-