Class ArtMock

All Implemented Interfaces:
Comparable<Art>, net.kyori.adventure.key.Keyed, Art, Keyed, OldEnum<Art>

public class ArtMock extends OldKeyedEnumMock<Art> implements Art
  • Constructor Details

    • ArtMock

      public ArtMock(String name, int ordinal, NamespacedKey key, int blockHeight, int blockWidth, int id, net.kyori.adventure.key.Key assetId, @Nullable @Nullable net.kyori.adventure.text.Component author, @Nullable @Nullable net.kyori.adventure.text.Component title)
  • Method Details

    • from

      public static ArtMock from(com.google.gson.JsonObject jsonObject)
    • getBlockWidth

      public int getBlockWidth()
      Specified by:
      getBlockWidth in interface Art
    • getBlockHeight

      public int getBlockHeight()
      Specified by:
      getBlockHeight in interface Art
    • getId

      public int getId()
      Specified by:
      getId in interface Art
    • title

      @Nullable public @Nullable net.kyori.adventure.text.Component title()
      Specified by:
      title in interface Art
    • author

      @Nullable public @Nullable net.kyori.adventure.text.Component author()
      Specified by:
      author in interface Art
    • assetId

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

      @Deprecated(since="1.21", forRemoval=true) @NotNull public @NotNull net.kyori.adventure.key.Key key()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      key in interface Art
      Specified by:
      key in interface net.kyori.adventure.key.Keyed
      Specified by:
      key in interface Keyed