Interface IBlockScriptedDoor

All Superinterfaces:
IBlock

public interface IBlockScriptedDoor extends IBlock
  • Method Details

    • getTimers

      ITimers getTimers()
    • getOpen

      boolean getOpen()
    • setOpen

      void setOpen(boolean open)
    • setBlockModel

      void setBlockModel(String name)
      Parameters:
      name - The items name for the blocks model to be set
    • getBlockModel

      String getBlockModel()
    • getHardness

      float getHardness()
      Returns:
      Harvesting hardness (-1 makes it unharvestable)
    • setHardness

      void setHardness(float hardness)
    • getResistance

      float getResistance()
      Returns:
      Explosion resistance (-1 makes it unexplodable)
    • setResistance

      void setResistance(float resistance)
    • executeCommand

      String executeCommand(String command)
      On servers the enable-command-block option in the server.properties needs to be set to true
      Use /gamerule commandBlockOutput false/true to turn off/on command block feedback
      Setting NpcUseOpCommands to true in the CustomNPCs.cfg should allow the npc to run op commands, be warned this could be a major security risk, use at own risk
      For permission plugins the commands are run under uuid:c9c843f8-4cb1-4c82-aa61-e264291b7bd6 and name:[customnpcs]
      Parameters:
      command - The command to be executed
      Returns:
      Returns the commands output