mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 09:09:14 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -1,42 +1,103 @@
|
||||
package noppes.npcs.api.block;
|
||||
|
||||
/**
|
||||
* Represents a text plane that can be positioned, rotated, and scaled on a block.
|
||||
*/
|
||||
public interface ITextPlane {
|
||||
|
||||
/**
|
||||
* Gets the text displayed on this plane.
|
||||
* @return the display text
|
||||
*/
|
||||
public String getText();
|
||||
|
||||
/**
|
||||
* Sets the text displayed on this plane.
|
||||
* @param text the display text to set
|
||||
*/
|
||||
public void setText(String text);
|
||||
|
||||
/**
|
||||
* Gets the X-axis rotation in degrees.
|
||||
* @return the X rotation
|
||||
*/
|
||||
public int getRotationX();
|
||||
|
||||
/**
|
||||
* Gets the Y-axis rotation in degrees.
|
||||
* @return the Y rotation
|
||||
*/
|
||||
public int getRotationY();
|
||||
|
||||
/**
|
||||
* Gets the Z-axis rotation in degrees.
|
||||
* @return the Z rotation
|
||||
*/
|
||||
public int getRotationZ();
|
||||
|
||||
/**
|
||||
* Sets the X-axis rotation in degrees.
|
||||
* @param x the X rotation to set
|
||||
*/
|
||||
public void setRotationX(int x);
|
||||
|
||||
/**
|
||||
* Sets the Y-axis rotation in degrees.
|
||||
* @param y the Y rotation to set
|
||||
*/
|
||||
public void setRotationY(int y);
|
||||
|
||||
/**
|
||||
* @param z Default: 0.5
|
||||
* Sets the Z-axis rotation in degrees.
|
||||
* @param z the Z rotation to set. Default: 0.5
|
||||
*/
|
||||
public void setRotationZ(int z);
|
||||
|
||||
/**
|
||||
* Gets the X-axis positional offset.
|
||||
* @return the X offset
|
||||
*/
|
||||
public float getOffsetX();
|
||||
|
||||
/**
|
||||
* Gets the Y-axis positional offset.
|
||||
* @return the Y offset
|
||||
*/
|
||||
public float getOffsetY();
|
||||
|
||||
/**
|
||||
* Gets the Z-axis positional offset.
|
||||
* @return the Z offset
|
||||
*/
|
||||
public float getOffsetZ();
|
||||
|
||||
/**
|
||||
* Sets the X-axis positional offset.
|
||||
* @param x the X offset to set
|
||||
*/
|
||||
public void setOffsetX(float x);
|
||||
|
||||
/**
|
||||
* Sets the Y-axis positional offset.
|
||||
* @param y the Y offset to set
|
||||
*/
|
||||
public void setOffsetY(float y);
|
||||
|
||||
/**
|
||||
* Sets the Z-axis positional offset.
|
||||
* @param z the Z offset to set
|
||||
*/
|
||||
public void setOffsetZ(float z);
|
||||
|
||||
/**
|
||||
* Gets the scale of the text plane.
|
||||
* @return the scale factor
|
||||
*/
|
||||
public float getScale();
|
||||
|
||||
/**
|
||||
* @param scale Default: 1
|
||||
* Sets the scale of the text plane.
|
||||
* @param scale the scale factor to set. Default: 1
|
||||
*/
|
||||
public void setScale(float scale);
|
||||
}
|
||||
Reference in new issue
Block a user