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
  • Field Summary

    Fields inherited from interface org.bukkit.inventory.meta.trim.TrimMaterial

    AMETHYST, COPPER, DIAMOND, EMERALD, GOLD, IRON, LAPIS, NETHERITE, QUARTZ, REDSTONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrimMaterialMock(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, String translationKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.text.Component
     
    from(com.google.gson.JsonObject data)
     
    @NotNull org.bukkit.NamespacedKey
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Constructor Details

    • TrimMaterialMock

      @Internal public TrimMaterialMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description, String translationKey)
    • 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)