public static void despawnAgent(Channel channel, Entity entity)
{
// retrieve some NPC data...
AgentIdentifiers agentIDs = entity.get(AgentIdentifiers.class);
P022_DespawnAgent despawn = new P022_DespawnAgent();
despawn.init(channel);
despawn.setAgentID(agentIDs.agentID);
channel.writeAndFlush(despawn);
}