Package hiiragi283.core.api.item.alchemy
Class BottledPotionContents
-
- All Implemented Interfaces:
@JvmRecord() public final class BottledPotionContents extends Record
PotionContentsとHTBottleTypeを束ねたクラスです。
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, BottledPotionContents>CODECprivate final PotionContentscontentsprivate final HTBottleTypebottleTypeprivate final Holder<Potion>potionprivate final IntegercustomColorprivate final List<MobEffectInstance>customEffectsprivate final Iterable<MobEffectInstance>allEffectsprivate final BooleanisEmptyprivate final BooleanisWater
-
Constructor Summary
Constructors Constructor Description BottledPotionContents(PotionContents contents, HTBottleType bottleType)BottledPotionContents(Holder<Potion> potion)BottledPotionContents(Holder<Potion> potion, HTBottleType bottleType)
-
Method Summary
Modifier and Type Method Description final PotionContentsgetContents()final HTBottleTypegetBottleType()final Holder<Potion>getPotion()final IntegergetCustomColor()final List<MobEffectInstance>getCustomEffects()final Iterable<MobEffectInstance>getAllEffects()final BooleanisEmpty()final BooleanisWater()-
-
Constructor Detail
-
BottledPotionContents
BottledPotionContents(PotionContents contents, HTBottleType bottleType)
-
BottledPotionContents
BottledPotionContents(Holder<Potion> potion)
-
BottledPotionContents
BottledPotionContents(Holder<Potion> potion, HTBottleType bottleType)
-
-
Method Detail
-
getContents
final PotionContents getContents()
-
getBottleType
final HTBottleType getBottleType()
-
getPotion
final Holder<Potion> getPotion()
-
getCustomColor
final Integer getCustomColor()
-
getCustomEffects
final List<MobEffectInstance> getCustomEffects()
-
getAllEffects
final Iterable<MobEffectInstance> getAllEffects()
-
-
-
-