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

public class TrimMaterialMock extends Object implements org.bukkit.inventory.meta.trim.TrimMaterial
  • Constructor Details

    • TrimMaterialMock

      public TrimMaterialMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description)
      Parameters:
      key - The namespaced key representing this trim material
      description - The description of this trim material
    • TrimMaterialMock

      @Deprecated(forRemoval=true) public TrimMaterialMock(com.google.gson.JsonObject data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      data - Json data
  • Method Details

    • description

      @NotNull public @NotNull net.kyori.adventure.text.Component description()
      Specified by:
      description in interface org.bukkit.inventory.meta.trim.TrimMaterial
    • getTranslationKey

      @NotNull public @NotNull String getTranslationKey()
      Specified by:
      getTranslationKey in interface org.bukkit.Translatable
      Specified by:
      getTranslationKey in interface org.bukkit.inventory.meta.trim.TrimMaterial
    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
      Specified by:
      getKey in interface org.bukkit.inventory.meta.trim.TrimMaterial
    • from

      @Internal public static TrimMaterialMock from(com.google.gson.JsonObject data)