Little fixes for data structures

* Expose HWallItem's parse method
* Rename UserProfile to HUserProfile

Signed-off-by: Eduardo Alonso <edu@error404software.com>
This commit is contained in:
Eduardo Alonso 2019-01-02 23:56:40 +01:00
parent 3ff1abdf9b
commit 8bb0fb5176
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ package gearth.extensions.parsers;
import gearth.protocol.HPacket;
public class UserProfile {
public class HUserProfile {
private int id;
private String username;
private String motto;
@ -20,7 +20,7 @@ public class UserProfile {
private int lastAccessSince;
private boolean openProfile;
public UserProfile(HPacket packet) {
public HUserProfile(HPacket packet) {
id = packet.readInteger();
username = packet.readString();
motto = packet.readString();

View File

@ -28,7 +28,7 @@ public class HWallItem implements IFurni {
ownerId = packet.readInteger();
}
static HWallItem[] parse(HPacket packet) {
public static HWallItem[] parse(HPacket packet) {
int ownersCount = packet.readInteger();
HashMap<Integer, String> owners = new HashMap<>(ownersCount);