Per-player entity name #1407
-
Due to changes made to the accessibility of internal metadata classes, I am unable to use my previous technique for per-player entity names. If it's useful, my previous technique was to interrupt the Does anyone have any ideas on how I can set the display name of an entity per-player? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out I misunderstood the changes. As far as I understand, the metadata entry no longer holds its index and instead, this is done by the Map<Integer, Metadata.Entry<?>> you now have to pass in. The fix was simply using Metada.OptChat(Component) instead of trying to do new Metadata.Entry(index, Metadata.OptChat(component)) |
Beta Was this translation helpful? Give feedback.
Turns out I misunderstood the changes. As far as I understand, the metadata entry no longer holds its index and instead, this is done by the Map<Integer, Metadata.Entry<?>> you now have to pass in.
The fix was simply using Metada.OptChat(Component) instead of trying to do new Metadata.Entry(index, Metadata.OptChat(component))