Class TrimMaterialMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.trim.TrimMaterialMock
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.inventory.meta.trim.TrimMaterial,org.bukkit.Keyed,org.bukkit.Translatable
-
Field Summary
Fields inherited from interface org.bukkit.inventory.meta.trim.TrimMaterial
AMETHYST, COPPER, DIAMOND, EMERALD, GOLD, IRON, LAPIS, NETHERITE, QUARTZ, REDSTONE -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterialMock(com.google.gson.JsonObject data) Deprecated, for removal: This API element is subject to removal in a future version.TrimMaterialMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.Componentstatic TrimMaterialMockfrom(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
-
TrimMaterialMock
public TrimMaterialMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description) - 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:
descriptionin interfaceorg.bukkit.inventory.meta.trim.TrimMaterial
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceorg.bukkit.Translatable- Specified by:
getTranslationKeyin interfaceorg.bukkit.inventory.meta.trim.TrimMaterial
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed- Specified by:
getKeyin interfaceorg.bukkit.inventory.meta.trim.TrimMaterial
-
from
-
TrimMaterialMock(NamespacedKey, Component)instead