2018-07-06 13:30:00 +00:00
|
|
|
package com.eu.habbo.habbohotel.wired;
|
|
|
|
|
|
|
|
public class WiredMatchFurniSetting
|
|
|
|
{
|
|
|
|
public final int itemId;
|
|
|
|
public final String state;
|
|
|
|
public final int rotation;
|
|
|
|
public final int x;
|
|
|
|
public final int y;
|
|
|
|
|
2018-12-22 10:39:00 +00:00
|
|
|
public WiredMatchFurniSetting(int itemId, String state, int rotation, int x, int y)
|
2018-07-06 13:30:00 +00:00
|
|
|
{
|
|
|
|
this.itemId = 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)
|
|
|
|
{
|
2018-12-22 10:39:00 +00:00
|
|
|
return itemId + "-" + (state.isEmpty() || !includeState ? " " : state) + "-" + rotation + "-" + x + "-" + y;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|