Class AssetStoreUtils

java.lang.Object
com.github.skriptdev.skript.api.hytale.utils.AssetStoreUtils

public class AssetStoreUtils extends Object
Quick utility methods for working with AssetStore
  • Constructor Details

    • AssetStoreUtils

      public AssetStoreUtils()
  • Method Details

    • getBlockType

      @Nullable public static @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType(@NotNull @NotNull String blockId)
      Get a BlockType from ID
      Parameters:
      blockId - ID of the BlockType
      Returns:
      BlockType from ID if found, otherwise null
    • getBlockType

      @Nullable public static @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType(@NotNull @NotNull com.hypixel.hytale.server.core.inventory.ItemStack itemStack)
      Get a BlockType from ItemStack
      Parameters:
      itemStack - ItemStack to get BlockType from
      Returns:
      BlockType from ItemStack if found, otherwise null
    • getBlockType

      @Nullable public static @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType(@NotNull @NotNull com.hypixel.hytale.server.core.asset.type.item.config.Item item)
      Get a BlockType from Item
      Parameters:
      item - Item to get BlockType from
      Returns:
      BlockType from Item if found, otherwise null