public class ChannelBuilder
extends java.lang.Object
Constructor and Description |
---|
ChannelBuilder(java.lang.String name)
The Builder to create a channel.
|
Modifier and Type | Method and Description |
---|---|
ChatChannel |
build()
Build the channel
|
java.lang.String |
getFormat() |
java.util.List<java.lang.String> |
getJson() |
ChannelBuilder |
setAlwaysAppear(boolean alwaysAppear)
Set if the channel is always appear
|
ChannelBuilder |
setFormat(java.lang.String format) |
ChannelBuilder |
setJson(java.util.List<java.lang.String> json)
Set the json lore.
|
ChannelBuilder |
setName(java.lang.String name)
Set the name of the channel.
|
ChannelBuilder |
setPermission(java.lang.String permission)
Set the permission for the channel.
|
ChannelBuilder |
setPrefix(java.lang.String prefix)
Set the prefix of the channel
|
public ChannelBuilder(java.lang.String name)
name
- The name of the channel (usually lowercase)public ChannelBuilder setName(java.lang.String name)
name
- The name. (Lowercase is standard)public ChannelBuilder setPrefix(java.lang.String prefix)
prefix
- The prefix (supports & codes)public ChannelBuilder setPermission(java.lang.String permission)
permission
- The permissionpublic ChannelBuilder setAlwaysAppear(boolean alwaysAppear)
alwaysAppear
- public ChatChannel build()
public java.util.List<java.lang.String> getJson()
public ChannelBuilder setJson(java.util.List<java.lang.String> json)
json
- List of lore.public java.lang.String getFormat()
public ChannelBuilder setFormat(java.lang.String format)