Class ProtocolMessageDocumentation.Builder
java.lang.Object
wtf.choco.veinminer.documentation.ProtocolMessageDocumentation.Builder
- Enclosing class:
- ProtocolMessageDocumentation
A builder for
ProtocolMessageDocumentation
instances.-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Set the description of the protocol message.Add a new field to the protocol message.Set the name of the protocol message.
-
Method Details
-
name
Set the name of the protocol message.- Parameters:
name
- the name to set- Returns:
- this instance. Allows for chained method calls
-
description
Set the description of the protocol message.- Parameters:
description
- the description to set- Returns:
- this instance. Allows for chained method calls
-
field
public ProtocolMessageDocumentation.Builder field(String expectedType, String name, String description) Add a new field to the protocol message.The order of invocation of this method is significant. Fields added first will be listed first in the table.
- Parameters:
expectedType
- the expected field type (seeMessageField
for constants)name
- the name of the fielddescription
- the description of the field- Returns:
- this instance. Allows for chained method calls
-