/** * Retrieve a deep copy of the current wrapper object. * @return The current object. */ public WrappedServerPing deepClone() { WrappedServerPing copy = new WrappedServerPing(); WrappedChatComponent motd = getMotD(); copy.setPlayers(getPlayers()); copy.setFavicon(getFavicon()); copy.setMotD(motd != null ? motd.deepClone() : null); copy.setVersionName(getVersionName()); copy.setVersionProtocol(getVersionProtocol()); if (isPlayersVisible()) { copy.setPlayersMaximum(getPlayersMaximum()); copy.setPlayersOnline(getPlayersOnline()); } else { copy.setPlayersVisible(false); } return copy; }