Class CommandBlock

java.lang.Object
studio.magemonkey.codex.action.CommandBlock
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable

public class CommandBlock extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
Represents a block with a set of commands to be executed on interaction
  • Constructor Details

    • CommandBlock

      public CommandBlock(Map<String,Object> map)
    • CommandBlock

      public CommandBlock(org.bukkit.Material material, int type, String permission, boolean cancelAction, studio.magemonkey.codex.api.DelayedCommand... delayedCommands)
    • CommandBlock

      public CommandBlock()
    • CommandBlock

      public CommandBlock(org.bukkit.Material material, int type, String permission, boolean cancelAction, List<studio.magemonkey.codex.api.DelayedCommand> delayedCommands)
  • Method Details

    • invoke

      public void invoke(org.bukkit.event.player.PlayerEvent event, studio.magemonkey.codex.api.Replacer... reps)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serialize

      @NotNull public Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • setMaterial

      public void setMaterial(org.bukkit.Material material)
    • setType

      public void setType(int type)
    • setPermission

      public void setPermission(String permission)
    • setCancelAction

      public void setCancelAction(boolean cancelAction)
    • setDelayedCommands

      public void setDelayedCommands(List<studio.magemonkey.codex.api.DelayedCommand> delayedCommands)
    • getMaterial

      public org.bukkit.Material getMaterial()
    • getType

      public int getType()
    • getPermission

      public String getPermission()
    • isCancelAction

      public boolean isCancelAction()
    • getDelayedCommands

      public List<studio.magemonkey.codex.api.DelayedCommand> getDelayedCommands()