mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 07:14:47 +00:00
Added text plane interface and linked it to scripted block interface
This commit is contained in:
1 parent
165ec6ea1e
commit
427245d6bc
2 files changed
+55
-2
No files matched your search
@@ -73,9 +73,8 @@ public interface IBlockScripted extends IBlock {
|
||||
* 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 <br>
|
||||
* For permission plugins the commands are run under uuid:c9c843f8-4cb1-4c82-aa61-e264291b7bd6 and name:[customnpcs]
|
||||
* @param command The command to be executed
|
||||
* @return Returns the commands output
|
||||
*/
|
||||
String executeCommand(String command);
|
||||
void executeCommand(String command);
|
||||
|
||||
boolean getIsPassible();
|
||||
|
||||
@@ -94,4 +93,16 @@ public interface IBlockScripted extends IBlock {
|
||||
float getResistance();
|
||||
|
||||
void setResistance(float resistance);
|
||||
|
||||
ITextPlane getTextPlane();
|
||||
|
||||
ITextPlane getTextPlane2();
|
||||
|
||||
ITextPlane getTextPlane3();
|
||||
|
||||
ITextPlane getTextPlane4();
|
||||
|
||||
ITextPlane getTextPlane5();
|
||||
|
||||
ITextPlane getTextPlane6();
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package noppes.npcs.api.block;
|
||||
|
||||
public interface ITextPlane {
|
||||
|
||||
public String getText();
|
||||
|
||||
public void setText(String text);
|
||||
|
||||
public int getRotationX();
|
||||
|
||||
public int getRotationY();
|
||||
|
||||
public int getRotationZ();
|
||||
|
||||
public void setRotationX(int x);
|
||||
|
||||
public void setRotationY(int y);
|
||||
|
||||
/**
|
||||
* @param z Default: 0.5
|
||||
*/
|
||||
public void setRotationZ(int z);
|
||||
|
||||
public float getOffsetX();
|
||||
|
||||
public float getOffsetY();
|
||||
|
||||
public float getOffsetZ();
|
||||
|
||||
public void setOffsetX(float x);
|
||||
|
||||
public void setOffsetY(float y);
|
||||
|
||||
public void setOffsetZ(float z);
|
||||
|
||||
public float getScale();
|
||||
|
||||
/**
|
||||
* @param scale Default: 1
|
||||
*/
|
||||
public void setScale(float scale);
|
||||
}
|
||||
Reference in new issue
Block a user