int agentID = entity.get(AgentIdentifiers.class).agentID;
sendGuiData(channel);
// send this agent's spawn type
SpawnType spawnType = entity.get(SpawnData.class).spawnType;
P230_InstanceLoadAgentInfo beginAgentInfo = new P230_InstanceLoadAgentInfo();
beginAgentInfo.init(channel);
beginAgentInfo.setSpawnType(spawnType.getIntString());
channel.writeAndFlush(beginAgentInfo);
// set some initial values
EntityUpdateAttributesView.sendInitial(channel, entity);