Class PlayerChatAction
java.lang.Object
ua.mcchickenstudio.opencreative.indev.blocks.CodingBlock
ua.mcchickenstudio.opencreative.indev.blocks.actions.ActionBlock
ua.mcchickenstudio.opencreative.indev.blocks.actions.player.PlayerActionBlock
ua.mcchickenstudio.opencreative.indev.blocks.actions.player.PlayerChatAction
- All Implemented Interfaces:
ExtensionContent, TypedBlock, ViewableTypedBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(@NotNull org.bukkit.entity.Player player, @NotNull ActionsHandler actionsHandler, @NotNull Arguments arguments) @NotNull StringReturns description of extension content.@NotNull StringReturns lower-cased simple id of extension.@NotNull org.bukkit.inventory.ItemStackgetIcon()Returns an icon that will be shown in action type selection menus.@NotNull StringgetName()Returns name of extension content.Methods inherited from class PlayerActionBlock
execute, getTypeModifier and TypeMethodDescriptionfinal voidexecute(@Nullable org.bukkit.entity.Entity target, @NotNull ActionsHandler actionsHandler, @NotNull Arguments arguments) @NotNull StringgetType()Returns a specific type of block.Methods inherited from class ActionBlock
createWrapped, onSignClickModifier and TypeMethodDescription@Nullable WrappedActioncreateWrapped(@NotNull Map<String, Object> data) voidonSignClick(org.bukkit.event.player.PlayerInteractEvent event) Methods inherited from class CodingBlock
equals, getId, getMainBlock, getOffBlock, hashCode, placeBlocksModifier and TypeMethodDescriptionboolean@NotNull StringgetId()@NotNull org.bukkit.Material@NotNull org.bukkit.MaterialinthashCode()final voidplaceBlocks(@NotNull org.bukkit.Location mainLocation, @NotNull org.bukkit.Location offLocation, @NotNull org.bukkit.Location containerLocation, @NotNull org.bukkit.Location signLocation, @NotNull org.bukkit.Material containerMaterial, @NotNull org.bukkit.Material signMaterial)
-
Constructor Details
-
PlayerChatAction
public PlayerChatAction()
-
-
Method Details
-
execute
public void execute(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull ActionsHandler actionsHandler, @NotNull @NotNull Arguments arguments) - Specified by:
executein classPlayerActionBlock
-
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.
-
getIcon
@NotNull public @NotNull org.bukkit.inventory.ItemStack getIcon()Description copied from interface:ViewableTypedBlockReturns an icon that will be shown in action type selection menus.- Returns:
- icon of typed block.
-