Package noppes.npcs.api.block
Interface IBlockScriptedDoor
- All Superinterfaces:
IBlock
-
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand
(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]float
boolean
getOpen()
float
void
setBlockModel
(String name) void
setHardness
(float hardness) void
setOpen
(boolean open) void
setResistance
(float resistance) Methods inherited from interface noppes.npcs.api.block.IBlock
blockEvent, getBlockEntityNBT, getContainer, getDisplayName, getMCBlock, getMCBlockState, getMCTileEntity, getName, getPos, getProperties, getProperty, getStoreddata, getTempdata, getWorld, getX, getY, getZ, hasTileEntity, interact, isAir, isContainer, isRemoved, remove, setBlock, setBlock, setProperty, setTileEntityNBT
-
Method Details
-
getTimers
ITimers getTimers() -
getOpen
boolean getOpen() -
setOpen
void setOpen(boolean open) -
setBlockModel
- 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
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
-