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

public class TrimPatternMock extends Object implements org.bukkit.inventory.meta.trim.TrimPattern
  • 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

    Constructors
    Constructor
    Description
    TrimPatternMock(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 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

    • TrimPatternMock

      public TrimPatternMock(org.bukkit.NamespacedKey key, net.kyori.adventure.text.Component description)
      Parameters:
      key - The namespaced key representing this pattern
    • TrimPatternMock

      @Deprecated(forRemoval=true) public TrimPatternMock(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.TrimPattern
    • getTranslationKey

      @NotNull public @NotNull String getTranslationKey()
      Specified by:
      getTranslationKey in interface org.bukkit.Translatable
      Specified by:
      getTranslationKey in interface org.bukkit.inventory.meta.trim.TrimPattern
    • 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.TrimPattern
    • from

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