mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 13:25:10 +00:00
Implemented offsets for player skin overlays
This commit is contained in:
1 parent
f9fcd6b9f8
commit
e8a3eb8344
6 files changed
+63
-17
No files matched your search
@@ -14,6 +14,10 @@ public class ScriptSkinOverlay implements ISkinOverlay {
|
||||
public float scaleX = 1.0F;
|
||||
public float scaleY = 1.0F;
|
||||
|
||||
public float offsetX = 0.0F;
|
||||
public float offsetY = 0.0F;
|
||||
public float offsetZ = 0.0F;
|
||||
|
||||
public ScriptSkinOverlay(String texture) {
|
||||
this.texture = texture;
|
||||
}
|
||||
@@ -68,4 +72,18 @@ public class ScriptSkinOverlay implements ISkinOverlay {
|
||||
return speedY;
|
||||
}
|
||||
|
||||
public void setOffset(float offsetX, float offsetY, float offsetZ) {
|
||||
this.offsetX = offsetX;
|
||||
this.offsetY = offsetY;
|
||||
this.offsetZ = offsetZ;
|
||||
}
|
||||
public float getOffsetX() {
|
||||
return offsetX;
|
||||
}
|
||||
public float getOffsetY() {
|
||||
return offsetY;
|
||||
}
|
||||
public float getOffsetZ() {
|
||||
return offsetZ;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user