Package hiiragi283.core.api.item.alchemy
Class HTPotionContents
-
- All Implemented Interfaces:
public final class HTPotionContentsPotionContentsとHTBottleTypeを束ねたクラスです。
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTPotionContents.BuilderHTPotionContentsのビルダークラスです。
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, HTPotionContents>CODECprivate final Ior<Holder<Potion>, List<HTMobEffectInstance>>contentsprivate final HTBottleTypebottleTypeprivate final BooleanisEmptyprivate final BooleanisWaterprivate final Holder<Potion>potionprivate final PotionContentsvanilla
-
Method Summary
Modifier and Type Method Description final Ior<Holder<Potion>, List<HTMobEffectInstance>>getContents()final HTBottleTypegetBottleType()final BooleanisEmpty()final BooleanisWater()final Holder<Potion>getPotion()final PotionContentsgetVanilla()final static HTPotionContentsfromVanilla(PotionContents contents, HTBottleType bottleType)ポーションとポーション瓶の種類からHTPotionContentsを作成します。 final static HTPotionContentsof(Holder<Potion> potion, HTBottleType bottleType)ポーションとポーション瓶の種類からHTPotionContentsを作成します。 final static HTPotionContentsof(Ior<Holder<Potion>, List<HTMobEffectInstance>> contents, HTBottleType bottleType)ポーションとポーション瓶の種類からHTPotionContentsを作成します。 final static HTPotionContentscreate(Function1<HTPotionContents.Builder, Unit> builderAction)-
-
Method Detail
-
getContents
final Ior<Holder<Potion>, List<HTMobEffectInstance>> getContents()
-
getBottleType
final HTBottleType getBottleType()
-
getPotion
final Holder<Potion> getPotion()
-
getVanilla
final PotionContents getVanilla()
-
fromVanilla
final static HTPotionContents fromVanilla(PotionContents contents, HTBottleType bottleType)
ポーションとポーション瓶の種類からHTPotionContentsを作成します。
- Returns:
contentsが空の場合は
null
-
of
final static HTPotionContents of(Holder<Potion> potion, HTBottleType bottleType)
ポーションとポーション瓶の種類からHTPotionContentsを作成します。
-
of
final static HTPotionContents of(Ior<Holder<Potion>, List<HTMobEffectInstance>> contents, HTBottleType bottleType)
ポーションとポーション瓶の種類からHTPotionContentsを作成します。
-
create
final static HTPotionContents create(Function1<HTPotionContents.Builder, Unit> builderAction)
-
-
-
-