Tabnine Logo
MapLoader.getDescription
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescription
method
in
jsettlers.logic.map.loading.MapLoader

Best Java code snippets using jsettlers.logic.map.loading.MapLoader.getDescription (Showing top 5 results out of 315)

origin: jsettlers/settlers-remake

@Override
public String getDescription() {
  return mapLoader.getDescription();
}
origin: jsettlers/settlers-remake

/**
 * Checks if a map matches the search criteria
 * 
 * @param m
 *            Map
 * @param search
 *            Criteria
 * @return true if yes, false if no
 */
private boolean matchesSearch(MapLoader m, String search) {
  if (m.getMapName().toLowerCase(Locale.ENGLISH).contains(search)) {
    return true;
  }
  if (m.getDescription().toLowerCase(Locale.ENGLISH).contains(search)) {
    return true;
  }
  return m.getMapId().toLowerCase(Locale.ENGLISH).contains(search);
}
origin: jsettlers/settlers-remake

/**
 * Checks if a map matches the search criteria
 *
 * @param m
 *            Map
 * @param search
 *            Criteria
 * @return true if yes, false if no
 */
private boolean matchesSearch(MapLoader m, String search) {
  if (search.isEmpty()) {
    return true;
  }
  if (m.getMapName().toLowerCase(Locale.ENGLISH).contains(search)) {
    return true;
  }
  if (m.getDescription().toLowerCase(Locale.ENGLISH).contains(search)) {
    return true;
  }
  return m.getMapId().toLowerCase(Locale.ENGLISH).contains(search);
}
origin: jsettlers/settlers-remake

lbPlayerCount.setText("Player: " + value.getMinPlayers() + " - " + value.getMaxPlayers());
if (value.getDescription() != null && !value.getDescription().isEmpty()) {
  lbDescription.setText(value.getDescription());
} else {
  lbDescription.setText("<no description>");
origin: jsettlers/settlers-remake

playerCountLabel.setText("Player: " + value.getMinPlayers() + " - " + value.getMaxPlayers());
if (value.getDescription() != null && !value.getDescription().isEmpty()) {
  descriptionLabel.setText(value.getDescription());
} else {
  descriptionLabel.setText("<no description>");
jsettlers.logic.map.loadingMapLoadergetDescription

Popular methods of MapLoader

  • getMaxPlayers
  • getCreationDate
  • getFileHeader
  • getLoaderForListedMap
  • getMapData
    Gets the map data for this loader, if the data is available.
  • getMapId
  • getMapName
  • getImage
  • getListedMap
  • getMinPlayers
  • loadMainGrid
  • checkExtention
  • loadMainGrid,
  • checkExtention,
  • getPlayers,
  • isExtensionKnown

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now