mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-03-04 01:12:37 +01:00
28 lines
768 B
Java
28 lines
768 B
Java
package com.eu.habbo.habbohotel.wired;
|
|
|
|
public class WiredMatchFurniSetting {
|
|
public final int item_id;
|
|
public final String state;
|
|
public final int rotation;
|
|
public final int x;
|
|
public final int y;
|
|
|
|
public WiredMatchFurniSetting(int itemId, String state, int rotation, int x, int y) {
|
|
this.item_id = itemId;
|
|
this.state = state.replace("\t\t\t", " ");
|
|
this.rotation = rotation;
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return this.toString(true);
|
|
}
|
|
|
|
public String toString(boolean includeState) {
|
|
return this.item_id + "-" + (this.state.isEmpty() || !includeState ? " " : this.state) + "-" + this.rotation + "-" + this.x + "-" + this.y;
|
|
}
|
|
|
|
}
|