Package de.maxhenkel.voicechat.api
Interface VolumeCategory.Builder
- Enclosing interface:
VolumeCategory
public static interface VolumeCategory.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setDescription(String description) setDescriptionTranslationKey(String translationKey) setIcon(int[][] icon) The array has to be 16x16.This ID has to be between 1 and 16 characters and can only contain lowercasea-zand_.setNameTranslationKey(String translationKey)
-
Method Details
-
setId
This ID has to be between 1 and 16 characters and can only contain lowercasea-zand_.- Parameters:
id- the unique ID of the category- Returns:
- the builder
-
setName
- Parameters:
name- the full name of the category, that is displayed for the end user if no translation is present- Returns:
- the builder
-
setNameTranslationKey
- Parameters:
translationKey- the translation key for the full name of the category- Returns:
- the builder
-
setDescription
- Parameters:
description- the hover tooltip that is shown for this category if no translation is present- Returns:
- the builder
-
setDescriptionTranslationKey
- Parameters:
translationKey- the translation key for the hover tooltip- Returns:
- the builder
-
setIcon
The array has to be 16x16. Each integer represents a pixel in the RGBA format.- Parameters:
icon- the icon that is shown for this category- Returns:
- the builder
-
build
VolumeCategory build()- Returns:
- the built category
-