Class AttributeMock

All Implemented Interfaces:
Comparable<Attribute>, net.kyori.adventure.key.Keyed, net.kyori.adventure.translation.Translatable, Attribute, Keyed, Translatable, OldEnum<Attribute>

public class AttributeMock extends OldKeyedEnumMock<Attribute> implements Attribute
  • Constructor Details

  • Method Details

    • from

      public static AttributeMock from(com.google.gson.JsonObject jsonObject)
    • translationKey

      @NotNull public @NotNull String translationKey()
      Specified by:
      translationKey in interface net.kyori.adventure.translation.Translatable
    • getTranslationKey

      @Deprecated(forRemoval=true, since="1.21.3") @NotNull public @NotNull String getTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTranslationKey in interface Translatable
    • key

      @NotNull public @NotNull net.kyori.adventure.key.Key key()
      Specified by:
      key in interface net.kyori.adventure.key.Keyed
      Specified by:
      key in interface Keyed