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