/** * Retrieve a read/write structure for the PlayerInfoData list fields in the following packet: <br> * <ul> * <li>{@link PacketType.Play.Server#PLAYER_INFO} * </ul> * @return A modifier for PlayerInfoData list fields. */ public StructureModifier<List<PlayerInfoData>> getPlayerInfoDataLists() { // Convert to and from the ProtocolLib wrapper return structureModifier.withType( Collection.class, BukkitConverters.getListConverter(PlayerInfoData.getConverter())); }