summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/EquippableItem.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-12 22:33:32 -0800
committerFuwn <[email protected]>2026-02-12 22:33:32 -0800
commitc7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9 (patch)
treedf9f48bf128a6c0186a8e91857d6ff30fe0e9f18 /NET/worlds/scape/EquippableItem.java
downloadworldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.tar.xz
worldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.zip
Initial commit
Diffstat (limited to 'NET/worlds/scape/EquippableItem.java')
-rw-r--r--NET/worlds/scape/EquippableItem.java136
1 files changed, 136 insertions, 0 deletions
diff --git a/NET/worlds/scape/EquippableItem.java b/NET/worlds/scape/EquippableItem.java
new file mode 100644
index 0000000..c8385b1
--- /dev/null
+++ b/NET/worlds/scape/EquippableItem.java
@@ -0,0 +1,136 @@
+package NET.worlds.scape;
+
+public class EquippableItem extends InventoryItem {
+ private String modelLocation_;
+ private float xPos_;
+ private float yPos_;
+ private float zPos_;
+ private float scale_;
+ private int pitch_;
+ private int roll_;
+ private int yaw_;
+ private Shape shape_;
+ private int bodyLocation_;
+
+ public EquippableItem(String id, String name, int qty, String modelLoc, float scale, int bodyLoc) {
+ super(id, name, qty);
+ this.modelLocation_ = modelLoc;
+ this.scale_ = scale;
+ this.bodyLocation_ = bodyLoc;
+ this.shape_ = null;
+ }
+
+ public EquippableItem(String id, String name, int qty, String modelLoc, float scale, int bodyLoc, float xPos, float yPos, float zPos) {
+ super(id, name, qty);
+ this.modelLocation_ = modelLoc;
+ this.scale_ = scale;
+ this.bodyLocation_ = bodyLoc;
+ this.xPos_ = xPos;
+ this.yPos_ = yPos;
+ this.zPos_ = zPos;
+ this.shape_ = null;
+ }
+
+ public EquippableItem(
+ String id, String name, int qty, String modelLoc, float scale, int bodyLoc, float xPos, float yPos, float zPos, int pitch, int roll, int yaw
+ ) {
+ super(id, name, qty);
+ this.modelLocation_ = modelLoc;
+ this.scale_ = scale;
+ this.bodyLocation_ = bodyLoc;
+ this.xPos_ = xPos;
+ this.yPos_ = yPos;
+ this.zPos_ = zPos;
+ this.pitch_ = pitch;
+ this.roll_ = roll;
+ this.yaw_ = yaw;
+ this.shape_ = null;
+ }
+
+ public EquippableItem(EquippableItem in) {
+ super(in);
+ this.modelLocation_ = in.modelLocation_;
+ this.scale_ = in.scale_;
+ this.bodyLocation_ = in.bodyLocation_;
+ this.xPos_ = in.xPos_;
+ this.yPos_ = in.yPos_;
+ this.zPos_ = in.zPos_;
+ this.pitch_ = in.pitch_;
+ this.roll_ = in.roll_;
+ this.yaw_ = in.yaw_;
+ this.shape_ = null;
+ }
+
+ @Override
+ public InventoryItem cloneItem() {
+ return new EquippableItem(this);
+ }
+
+ public String getModelLocation() {
+ return this.modelLocation_;
+ }
+
+ public void setModelLocation(String loc) {
+ this.modelLocation_ = loc;
+ }
+
+ public int getBodyLocation() {
+ return this.bodyLocation_;
+ }
+
+ public void setBodyLocation(int loc) {
+ this.bodyLocation_ = loc;
+ }
+
+ public float getScale() {
+ return this.scale_;
+ }
+
+ public void setScale(float scale) {
+ this.scale_ = scale;
+ }
+
+ public float getXPos() {
+ return this.xPos_;
+ }
+
+ public float getYPos() {
+ return this.yPos_;
+ }
+
+ public float getZPos() {
+ return this.zPos_;
+ }
+
+ public void setPosition(float xPos, float yPos, float zPos) {
+ this.xPos_ = xPos;
+ this.yPos_ = yPos;
+ this.zPos_ = zPos;
+ }
+
+ public int getPitch() {
+ return this.pitch_;
+ }
+
+ public int getRoll() {
+ return this.roll_;
+ }
+
+ public int getYaw() {
+ return this.yaw_;
+ }
+
+ public void setRotation(int pitch, int roll, int yaw) {
+ this.pitch_ = pitch;
+ this.roll_ = roll;
+ this.yaw_ = yaw;
+ }
+
+ public void setOwnedShape(Shape s) {
+ this.shape_ = s;
+ }
+
+ public Shape getOwnedShape() {
+ return this.shape_;
+ }
+}