Package hiiragi283.core.api.item.alchemy
Object HTPotionFluidManager
-
- All Implemented Interfaces:
public class HTPotionFluidManager液体ポーションを管理するクラスです。
- Since:
0.10.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHTPotionFluidManager.Handlerポーション瓶の種類を保持するインターフェースです。
-
Field Summary
Fields Modifier and Type Field Description public final static HTPotionFluidManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitregister(Fluid fluid, HTPotionFluidManager.Handler handler)指定したfluidにhandlerを登録します。 final static Set<Holder<Fluid>>getSupportedFluids()final static PotionContentsgetContents(FluidStack stack)指定した液体からPotionContentsを取得します。 final static HTBottleTypegetBottleType(Fluid fluid, DataComponentHolder holder)指定した液体からHandlerを取得し,holderからHTBottleTypeを取得します。 final static HTBottleTypegetBottleType(FluidStack stack)指定した液体からHTBottleTypeを取得します。 final static UnitsetBottleType(Fluid fluid, MutableDataComponentHolder holder, HTBottleType bottleType)指定した液体からHandlerを取得し,holderにポーション瓶の種類を設定します。 final static UnitsetBottleType(FluidStack stack, HTBottleType bottleType)指定した液体にポーション瓶の種類を設定します。 -
-
Method Detail
-
register
final static Unit register(Fluid fluid, HTPotionFluidManager.Handler handler)
-
getSupportedFluids
final static Set<Holder<Fluid>> getSupportedFluids()
-
getContents
final static PotionContents getContents(FluidStack stack)
指定した液体からPotionContentsを取得します。
-
getBottleType
final static HTBottleType getBottleType(Fluid fluid, DataComponentHolder holder)
指定した液体からHandlerを取得し,holderからHTBottleTypeを取得します。
-
getBottleType
final static HTBottleType getBottleType(FluidStack stack)
指定した液体からHTBottleTypeを取得します。
-
setBottleType
final static Unit setBottleType(Fluid fluid, MutableDataComponentHolder holder, HTBottleType bottleType)
-
setBottleType
final static Unit setBottleType(FluidStack stack, HTBottleType bottleType)
-
-
-
-