@Deprecated public void setFavicon(String favicon) { setFavicon( favicon == null ? null : Favicon.create( favicon ) ); }
@Override public Favicon read(JsonReader in) throws IOException { String enc = TypeAdapters.STRING.read( in ); return enc == null ? null : create( enc ); } };
@Deprecated public ServerPing(Protocol version, Players players, String description, String favicon) { this( version, players, new TextComponent( TextComponent.fromLegacyText( description ) ), favicon == null ? null : Favicon.create( favicon ) ); }
favicon = Favicon.create( ImageIO.read( fav ) ); } catch ( IOException | IllegalArgumentException ex )
@Deprecated public void setFavicon(String favicon) { setFavicon( favicon == null ? null : Favicon.create( favicon ) ); }
@Override public Favicon read(JsonReader in) throws IOException { String enc = TypeAdapters.STRING.read( in ); return enc == null ? null : create( enc ); } };
@Deprecated public ServerPing(Protocol version, Players players, String description, String favicon) { this( version, players, new TextComponent( TextComponent.fromLegacyText( description ) ), favicon == null ? null : Favicon.create( favicon ) ); }
favicon = Favicon.create( ImageIO.read( fav ) ); } catch ( IOException | IllegalArgumentException ex )