Class TrimMaterialMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.trim.TrimMaterialMock
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,TrimMaterial
,Keyed
,Translatable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTrimMaterialMock
(com.google.gson.JsonObject data) Deprecated, for removal: This API element is subject to removal in a future version.TrimMaterialMock
(NamespacedKey key, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.Component
static TrimMaterialMock
from
(com.google.gson.JsonObject data) @NotNull NamespacedKey
getKey()
@NotNull String
-
Constructor Details
-
TrimMaterialMock
- Parameters:
key
- The namespaced key representing this trim materialdescription
- The description of this trim material
-
TrimMaterialMock
Deprecated, for removal: This API element is subject to removal in a future version.UseTrimMaterialMock(NamespacedKey,Component)
instead- Parameters:
data
- Json data
-
-
Method Details
-
description
@NotNull public @NotNull net.kyori.adventure.text.Component description()- Specified by:
description
in interfaceTrimMaterial
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceTranslatable
- Specified by:
getTranslationKey
in interfaceTrimMaterial
-
getKey
- Specified by:
getKey
in interfaceKeyed
- Specified by:
getKey
in interfaceTrimMaterial
-
from
-
TrimMaterialMock(NamespacedKey,Component)
instead