Interface TabListEntry.Builder
-
- All Superinterfaces:
AbstractBuilder<TabListEntry>
,Buildable.Builder<TabListEntry>
,Builder<TabListEntry,TabListEntry.Builder>
,CopyableBuilder<TabListEntry,TabListEntry.Builder>
,ResettableBuilder<TabListEntry,TabListEntry.Builder>
- Enclosing interface:
- TabListEntry
public static interface TabListEntry.Builder extends Builder<TabListEntry,TabListEntry.Builder>, CopyableBuilder<TabListEntry,TabListEntry.Builder>
Represents a builder class to create mutableTabListEntry
s.- See Also:
TabListEntry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TabListEntry
build()
Builds an entry based off the values of this builder.TabListEntry.Builder
displayName(@Nullable Component displayName)
Sets the display name for entries created by this builder.TabListEntry.Builder
gameMode(GameMode gameMode)
Sets the gamemode for entries created by this builder.TabListEntry.Builder
latency(int latency)
Sets the latency for entries created by this builder.TabListEntry.Builder
list(TabList list)
Sets theTabList
this entry is owned by.TabListEntry.Builder
profile(GameProfile profile)
Sets the profile for entries created by this builder.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
-
-
-
Method Detail
-
list
TabListEntry.Builder list(TabList list)
Sets theTabList
this entry is owned by.- Parameters:
list
- The tab list- Returns:
- The builder
-
profile
TabListEntry.Builder profile(GameProfile profile)
Sets the profile for entries created by this builder.A copy of the passed
GameProfile
is used, so further changes to the original object will have no effect.- Parameters:
profile
- The profile- Returns:
- The builder
-
displayName
TabListEntry.Builder displayName(@Nullable Component displayName)
Sets the display name for entries created by this builder.- Parameters:
displayName
- The display name- Returns:
- The builder
- See Also:
TabListEntry.setDisplayName(Component)
-
latency
TabListEntry.Builder latency(int latency)
Sets the latency for entries created by this builder.- Parameters:
latency
- The latency, in milliseconds- Returns:
- The builder
- See Also:
TabListEntry.setLatency(int)
-
gameMode
TabListEntry.Builder gameMode(GameMode gameMode)
Sets the gamemode for entries created by this builder.- Parameters:
gameMode
- The gamemode- Returns:
- The builder
- See Also:
TabListEntry.setGameMode(GameMode)
-
build
TabListEntry build()
Builds an entry based off the values of this builder.- Specified by:
build
in interfaceAbstractBuilder<TabListEntry>
- Specified by:
build
in interfaceBuildable.Builder<TabListEntry>
- Returns:
- The entry
-
-