public class StartingMapBuilder
extends java.lang.Object
StartingMap
instances while parsing a "replyinfo
startingmap" response packet.Modifier and Type | Field and Description |
---|---|
private byte[] |
archName
The archetype name of the current entry.
|
private java.lang.String |
description
The description of this entry.
|
private java.lang.String |
name
The proper name of this entry.
|
private java.util.Collection<StartingMap> |
startingMaps
The
StartingMap entries parsed so far. |
Constructor and Description |
---|
StartingMapBuilder() |
Modifier and Type | Method and Description |
---|---|
private void |
addStartingMap()
Adds a new
StartingMap entry to startingMaps for the
current entry. |
java.util.Collection<StartingMap> |
finish()
Finishes parsing.
|
void |
setArchName(byte[] archName)
Starts a new starting map entry.
|
void |
setDescription(java.lang.String description)
Sets the description of the current entry.
|
void |
setName(java.lang.String name)
Sets the name of the current entry.
|
@Nullable private byte[] archName
null
until the
first entry was started.@Nullable private java.lang.String description
null
if no description has
been set yet.@Nullable private java.lang.String name
null
if no proper name has
been set yet.@NotNull private final java.util.Collection<StartingMap> startingMaps
StartingMap
entries parsed so far.private void addStartingMap()
StartingMap
entry to startingMaps
for the
current entry. Resets the current entry.@NotNull public java.util.Collection<StartingMap> finish()
public void setArchName(@NotNull byte[] archName)
archName
- the archetype name of the entrypublic void setDescription(@NotNull java.lang.String description)
description
- the descriptionpublic void setName(@NotNull java.lang.String name)
name
- the name