Interface TrimMaterial
- All Superinterfaces:
Keyed, Keyed, Translatable
Represents a material that may be used in an
ArmorTrim.- Since:
- 1.19.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterialstatic final TrimMaterial -
Method Summary
Modifier and TypeMethodDescriptionGet the description of thisTrimMaterial.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.key()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
AMETHYST
- Since:
- 1.19.4
-
COPPER
- Since:
- 1.19.4
-
DIAMOND
- Since:
- 1.19.4
-
EMERALD
- Since:
- 1.19.4
-
GOLD
- Since:
- 1.19.4
-
IRON
- Since:
- 1.19.4
-
LAPIS
- Since:
- 1.19.4
-
NETHERITE
- Since:
- 1.19.4
-
QUARTZ
- Since:
- 1.19.4
-
REDSTONE
- Since:
- 1.19.4
-
RESIN
- Since:
- 1.21.4
-
-
Method Details
-
description
Get the description of thisTrimMaterial.- Returns:
- the description
- Since:
- 1.20.4
-
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_MATERIAL. TrimMaterials 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_MATERIAL. TrimMaterials 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_MATERIAL.