Tabnine Logo
ECivilisation.valueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
valueOf
method
in
jsettlers.common.player.ECivilisation

Best Java code snippets using jsettlers.common.player.ECivilisation.valueOf (Showing top 1 results out of 315)

origin: jsettlers/settlers-remake

public static PlayerSetting readFromStream(DataInputStream dis) throws IOException {
  dis.readShort(); // read version
  boolean available = dis.readBoolean();
  if (available) {
    byte readTeamId = dis.readByte();
    Byte teamId = readTeamId == -1 ? null : readTeamId;
    String civilizationName = dis.readUTF();
    ECivilisation civilisation = civilizationName.isEmpty() ? null : ECivilisation.valueOf(civilizationName);
    String playerTypeName = dis.readUTF();
    EPlayerType playerType = playerTypeName.isEmpty() ? null : EPlayerType.valueOf(playerTypeName);
    return new PlayerSetting(true, playerType, civilisation, teamId);
  } else {
    return new PlayerSetting();
  }
}
jsettlers.common.playerECivilisationvalueOf

Popular methods of ECivilisation

  • name
  • values

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best plugins for Eclipse
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