Object HTPotionHelper

  • All Implemented Interfaces:

    
    public class HTPotionHelper
    
                        
    Since:

    0.3.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static PotionContents getPotion(DataComponentHolder holder) 指定したholderからPotionContentsを取得します。
      final static String getPotionName(DataComponentHolder holder, HTBottleType bottleType) 指定したholderbottleTypeからポーションの翻訳キーを取得します。
      final static ItemStack createPotion(ItemLike item, Holder<Potion> potion, Integer count) 指定した引数からポーションのItemStackを作成します。
      final static ItemStack createPotion(ItemLike item, PotionContents contents, Integer count) 指定した引数からポーションのItemStackを作成します。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getPotion

         final static PotionContents getPotion(DataComponentHolder holder)

        指定したholderからPotionContentsを取得します。

        Returns:

        値を保持していない場合はPotionContents.EMPTY

        Since:

        0.10.0

      • createPotion

         final static ItemStack createPotion(ItemLike item, Holder<Potion> potion, Integer count)

        指定した引数からポーションのItemStackを作成します。

        Parameters:
        item - アイテムの種類
        potion - ポーションの中身
        count - ItemStackの個数
      • createPotion

         final static ItemStack createPotion(ItemLike item, PotionContents contents, Integer count)

        指定した引数からポーションのItemStackを作成します。

        Parameters:
        item - アイテムの種類
        contents - ポーションの中身
        count - ItemStackの個数