Class TrimPatternMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.trim.TrimPatternMock
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.inventory.meta.trim.TrimPattern,org.bukkit.Keyed,org.bukkit.Translatable
-
Field Summary
Fields inherited from interface org.bukkit.inventory.meta.trim.TrimPattern
BOLT, COAST, DUNE, EYE, FLOW, HOST, RAISER, RIB, SENTRY, SHAPER, SILENCE, SNOUT, SPIRE, TIDE, VEX, WARD, WAYFINDER, WILD -
Constructor Summary
ConstructorsConstructorDescriptionTrimPatternMock(com.google.gson.JsonObject data) Deprecated, for removal: This API element is subject to removal in a future version.TrimPatternMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.Componentstatic TrimPatternMockfrom(com.google.gson.JsonObject data) @NotNull org.bukkit.NamespacedKeygetKey()@NotNull StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
key
-
Constructor Details
-
TrimPatternMock
public TrimPatternMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description) - 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:
descriptionin interfaceorg.bukkit.inventory.meta.trim.TrimPattern
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceorg.bukkit.Translatable- Specified by:
getTranslationKeyin interfaceorg.bukkit.inventory.meta.trim.TrimPattern
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed- Specified by:
getKeyin interfaceorg.bukkit.inventory.meta.trim.TrimPattern
-
from
-
TrimPatternMock(NamespacedKey, Component)instead