I'd like to change some entity metadata (custom name visible) and send it to only one client using a packet. I'm aware that the packet constructor takes a data watcher object and there is a static field in the Entity.class
My question is how do I get a fresh data watcher? Something like this would actually modify the entity which I don't want:java DataWatcher dw = ((CraftEntity) entity).getHandle().getDataWatcher(); dw.set(...)(oh, and, I've wanted to see how setCustomNameVisible method works, but there's no source code I can see for some reason)