Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<WrappedWatchableObject> objectList = Lists.newArrayList();
- for (WrappedWatchableObject object : entityMetadataPacket.getMetadata()) {
- if (object.getIndex() == 2) {
- WrappedWatchableObject newObject = ((AbstractCommonSpigotWrapper) CommonWrapper.getWrapper()).buildWatchableObject(2, text);
- objectList.add(newObject);
- } else {
- objectList.add(object);
- }
- }
- entityMetadataPacket.setMetadata(objectList);
Add Comment
Please, Sign In to add comment