Class AssetStoreUtils
java.lang.Object
com.github.skriptdev.skript.api.hytale.utils.AssetStoreUtils
Quick utility methods for working with AssetStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypegetBlockType(@NotNull com.hypixel.hytale.server.core.asset.type.item.config.Item item) Get a BlockType from Itemstatic @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypegetBlockType(@NotNull com.hypixel.hytale.server.core.inventory.ItemStack itemStack) Get a BlockType from ItemStackstatic @Nullable com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypegetBlockType(@NotNull String blockId) Get a BlockType from ID
-
Constructor Details
-
AssetStoreUtils
public AssetStoreUtils()
-
-
Method Details
-
getBlockType
-
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
-