Tabnine Logo
SettlersVersionMapping.getMappingForVersionId
Code IndexAdd Tabnine to your IDE (free)

How to use
getMappingForVersionId
method
in
jsettlers.graphics.image.reader.versions.SettlersVersionMapping

Best Java code snippets using jsettlers.graphics.image.reader.versions.SettlersVersionMapping.getMappingForVersionId (Showing top 3 results out of 315)

origin: jsettlers/settlers-remake

/**
 * Sets the path to look for dat files.
 *
 * @param path
 *         The directory. It may not exist, but must not be null.
 */
public static void setLookupPath(File path, String settlersVersionId) {
  ImageProvider.lookupPath = path;
  getInstance().gfxFolderMapping = SettlersVersionMapping.getMappingForVersionId(settlersVersionId);
  getInstance().startPreloading();
}
origin: jsettlers/settlers-remake

@Test
public void testGetAmazonDemoMapping() {
  GfxFolderMapping mapping = SettlersVersionMapping.getMappingForVersionId(Long.toString(-1282419180527137435L));
  assertNotNull(mapping);
  assertTrue(mapping instanceof IndexingGfxFolderMapping);
}
origin: jsettlers/settlers-remake

  @Test
  public void testGetMappingForUnknownHash() {
    GfxFolderMapping mapping = SettlersVersionMapping.getMappingForVersionId(Long.toString(-1L));

    assertNotNull(mapping);
    assertTrue(mapping instanceof DefaultGfxFolderMapping);
  }
}
jsettlers.graphics.image.reader.versionsSettlersVersionMappinggetMappingForVersionId

Popular methods of SettlersVersionMapping

  • <init>
  • getMapping
  • readFromStream
  • serializeToStream

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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