mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 08:24:47 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
c22c5f9d79
commit
afb5f1d645
60 files changed
+592
-509
No files matched your search
@@ -3,7 +3,7 @@ package noppes.npcs.api;
|
||||
/**
|
||||
* A skin overlay object for both NPCs and players. Several skin overlays at a time can be layered on top of each other.
|
||||
* In an NPC's case, the old overlay texture is now the skin overlay with ID 0.
|
||||
*
|
||||
* <p>
|
||||
* Modifying these attributes, an overlay can be made to look like a powered creeper effect, just a new skin, or both!
|
||||
*/
|
||||
public interface ISkinOverlay {
|
||||
@@ -11,24 +11,28 @@ public interface ISkinOverlay {
|
||||
* Sets the directory texture of the overlay. Does not support URLs.
|
||||
*/
|
||||
void setTexture(String texture);
|
||||
|
||||
String getTexture();
|
||||
|
||||
/**
|
||||
* Sets whether this overlay glows in the dark or not.
|
||||
*/
|
||||
void setGlow(boolean glow);
|
||||
|
||||
boolean getGlow();
|
||||
|
||||
/**
|
||||
* Sets whether this overlay blends on top of bottom textures at any alpha value.
|
||||
*/
|
||||
void setBlend(boolean blend);
|
||||
|
||||
boolean getBlend();
|
||||
|
||||
/**
|
||||
* Sets the transparency of the overlay, from 0 to 1.
|
||||
*/
|
||||
void setAlpha(float alpha);
|
||||
|
||||
float getAlpha();
|
||||
|
||||
/**
|
||||
@@ -36,13 +40,16 @@ public interface ISkinOverlay {
|
||||
* the entity's model.
|
||||
*/
|
||||
void setSize(float size);
|
||||
|
||||
float getSize();
|
||||
|
||||
/**
|
||||
* Sets the texture scale of the overlay. Higher values will "zoom in" to the texture more.
|
||||
*/
|
||||
void setTextureScale(float scaleX, float scaleY);
|
||||
|
||||
float getTextureScaleX();
|
||||
|
||||
float getTextureScaleY();
|
||||
|
||||
/**
|
||||
@@ -50,14 +57,19 @@ public interface ISkinOverlay {
|
||||
* This does not move the entire overlay, it just moves the position at which the texture begins rendering.
|
||||
*/
|
||||
void setSpeed(float speedX, float speedY);
|
||||
|
||||
float getSpeedX();
|
||||
|
||||
float getSpeedY();
|
||||
|
||||
/**
|
||||
* Sets the amount in each direction by which the overlay will be offset from the entity.
|
||||
*/
|
||||
void setOffset(float offsetX, float offsetY, float offsetZ);
|
||||
|
||||
float getOffsetX();
|
||||
|
||||
float getOffsetY();
|
||||
|
||||
float getOffsetZ();
|
||||
}
|
||||
Reference in new issue
Block a user