Package io.papermc.paper.registry.data
Interface BannerPatternRegistryEntry.Builder
- All Superinterfaces:
BannerPatternRegistryEntry
,RegistryBuilder<PatternType>
- Enclosing interface:
BannerPatternRegistryEntry
@Experimental
@NonExtendable
public static interface BannerPatternRegistryEntry.Builder
extends BannerPatternRegistryEntry, RegistryBuilder<PatternType>
A mutable builder for the
BannerPatternRegistryEntry
plugins may change in applicable registry events.
The following values are required for each builder:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.registry.data.BannerPatternRegistryEntry
BannerPatternRegistryEntry.Builder
-
Method Summary
Modifier and TypeMethodDescriptionSets the asset id of the pattern type, which is the location of the sprite to use.translationKey
(String translationKey) Sets the translation key for displaying the pattern inside the banner's tooltip.Methods inherited from interface io.papermc.paper.registry.data.BannerPatternRegistryEntry
assetId, translationKey
-
Method Details
-
assetId
@Contract(value="_ -> this", mutates="this") BannerPatternRegistryEntry.Builder assetId(Key assetId) Sets the asset id of the pattern type, which is the location of the sprite to use.- Parameters:
assetId
- the asset id.- Returns:
- this builder instance.
- See Also:
-
translationKey
@Contract(value="_ -> this", mutates="this") BannerPatternRegistryEntry.Builder translationKey(String translationKey) Sets the translation key for displaying the pattern inside the banner's tooltip.- Parameters:
translationKey
- the translation key.- Returns:
- this builder instance.
- See Also:
-