Class PlayerActionBlock
java.lang.Object
ua.mcchickenstudio.opencreative.indev.blocks.CodingBlock
ua.mcchickenstudio.opencreative.indev.blocks.actions.ActionBlock
ua.mcchickenstudio.opencreative.indev.blocks.actions.player.PlayerActionBlock
- All Implemented Interfaces:
ExtensionContent, TypedBlock, ViewableTypedBlock
- Direct Known Subclasses:
PlayerChatAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(@NotNull org.bukkit.entity.Player player, @NotNull ActionsHandler actionsHandler, @NotNull Arguments arguments) final 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) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExtensionContent
getDescription, getExtensionId, getNameMethods inherited from interface ViewableTypedBlock
getIconModifier and TypeMethodDescription@NotNull org.bukkit.inventory.ItemStackgetIcon()Returns an icon that will be shown in action type selection menus.
-
Constructor Details
-
PlayerActionBlock
-
-
Method Details
-
execute
public abstract void execute(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull ActionsHandler actionsHandler, @NotNull @NotNull Arguments arguments) -
getType
Description copied from interface:TypedBlockReturns a specific type of block.- Specified by:
getTypein interfaceTypedBlock- Returns:
- type of coding block.
-
execute
public final void execute(@Nullable @Nullable org.bukkit.entity.Entity target, @NotNull @NotNull ActionsHandler actionsHandler, @NotNull @NotNull Arguments arguments) - Specified by:
executein classActionBlock
-