String name = entity.get(Name.class).name;
AgentIdentifiers agentIDs = entity.get(AgentIdentifiers.class);
PlayerAppearance appearance = entity.get(PlayerAppearance.class);
// send update agent appearance
P077_UpdateAppearance updateAppear= new P077_UpdateAppearance();
updateAppear.init(channel);
updateAppear.setAgentID(agentIDs.localID);
updateAppear.setLocalID(agentIDs.agentID);
updateAppear.setAppearanceDump(byteArrayToInt(appearance.appearanceDump));
updateAppear.setUnknown1((byte) 0);
updateAppear.setUnknown2(0);
updateAppear.setUnknown3(0x3CBFA094);
updateAppear.setName(name);
channel.writeAndFlush(updateAppear);
}