Interface TrimPattern
- All Superinterfaces:
Keyed, Keyed, Translatable
Represents a pattern that may be used in an
ArmorTrim.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPatternstatic final TrimPattern -
Method Summary
Modifier and TypeMethodDescriptionstatic TrimPatterncreate(Consumer<RegistryBuilderFactory<TrimPattern, ? extends TrimPatternRegistryEntry.Builder>> value) Creates an inlined trim pattern.Get the description of thisTrimPattern.getKey()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.this method assumes thatdescription()will always be a translatable component which is not guaranteed.default Keykey()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
BOLT
-
COAST
-
DUNE
-
EYE
-
FLOW
-
HOST
-
RAISER
-
RIB
-
SENTRY
-
SHAPER
-
SILENCE
-
SNOUT
-
SPIRE
-
TIDE
-
VEX
-
WARD
-
WAYFINDER
-
WILD
-
-
Method Details
-
create
@Experimental static TrimPattern create(Consumer<RegistryBuilderFactory<TrimPattern, ? extends TrimPatternRegistryEntry.Builder>> value) Creates an inlined trim pattern.- Parameters:
value- a consumer for the builder factory- Returns:
- the created trim pattern
-
description
-
getTranslationKey
Deprecated, for removal: This API element is subject to removal in a future version.this method assumes thatdescription()will always be a translatable component which is not guaranteed.Description copied from interface:TranslatableGet the translation key, suitable for use in a translation component.- Specified by:
getTranslationKeyin interfaceTranslatable- Returns:
- the translation key
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed),RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey), andRegistryKey.TRIM_PATTERN. TrimPatterns can exist without a key.Description copied from interface:KeyedReturn the namespaced identifier for this object. -
key
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed),RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey), andRegistryKey.TRIM_PATTERN. TrimPatterns can exist without a key.Description copied from interface:KeyedReturns the unique identifier for this object.
-
Registry.getKey(Keyed),RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey), andRegistryKey.TRIM_PATTERN.