// retrieve some NPC data...
String name = entity.get(Name.class).name;
AgentIdentifiers agentIDs = entity.get(AgentIdentifiers.class);
// send the packet
P143_UpdateNpcName updNPCName = new P143_UpdateNpcName();
updNPCName.init(channel);
updNPCName.setAgentID(agentIDs.agentID);
updNPCName.setName(GWString.formatChat(name));
channel.writeAndFlush(updNPCName);
}