Class StartingMapBuilder

java.lang.Object
com.realtime.crossfire.jxclient.server.crossfire.StartingMapBuilder

public class StartingMapBuilder extends Object
Builder for StartingMap instances while parsing a "replyinfo startingmap" response packet.
  • Constructor Details

    • StartingMapBuilder

      public StartingMapBuilder()
  • Method Details

    • setArchName

      public void setArchName(@NotNull @NotNull String archName)
      Starts a new starting map entry.
      Parameters:
      archName - the archetype name of the entry
    • setName

      public void setName(@NotNull @NotNull String name)
      Sets the name of the current entry.
      Parameters:
      name - the name
    • setDescription

      public void setDescription(@NotNull @NotNull String description)
      Sets the description of the current entry.
      Parameters:
      description - the description
    • finish

      @NotNull public @NotNull Collection<StartingMap> finish()
      Finishes parsing.
      Returns:
      all starting map entries