Class ISkullOwnerMirror

java.lang.Object
com.saicone.rtag.item.mirror.ISkullOwnerMirror
All Implemented Interfaces:
ItemMirror

public class ISkullOwnerMirror extends Object implements ItemMirror
ISkullOwnerMirror class to convert player head skull owner UUID across versions.
  • Constructor Details

    • ISkullOwnerMirror

      public ISkullOwnerMirror()
  • Method Details

    • getMaximumVersion

      @NotNull public @NotNull com.saicone.rtag.util.MC getMaximumVersion()
      Description copied from interface: ItemMirror
      Get the maximum compatible version, exclusive.
      Specified by:
      getMaximumVersion in interface ItemMirror
      Returns:
      a version.
    • upgrade

      public void upgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull Object components, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to)
      Description copied from interface: ItemMirror
      Upgrade current item tag compound from lower version.
      Specified by:
      upgrade in interface ItemMirror
      Parameters:
      compound - the tag compound that represents item data.
      id - the item material id.
      components - the item components, on older versions this may be the item tag.
      from - the initial version of item data.
      to - the version to upgrade item data.
    • downgrade

      public void downgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull Object components, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to)
      Description copied from interface: ItemMirror
      Downgrade current item tag compound from upper version.
      Specified by:
      downgrade in interface ItemMirror
      Parameters:
      compound - the tag compound that represents item data.
      id - the item material id.
      components - the item components, on older versions this may be the item tag.
      from - the initial version of item data.
      to - the version to downgrade item data.
    • getHexadecimalUUID

      @Internal public static String getHexadecimalUUID(int[] array)
      Get old UUID format from int array.
      Parameters:
      array - Int array containing the UUID.
      Returns:
      An old formatted UUID or null.
    • getIntArrayUUID

      @Internal public static int[] getIntArrayUUID(String uuid)
      Get new UUID format from String.
      Parameters:
      uuid - Old formatted UUID.
      Returns:
      Int array containing the UUID or null.