Package hiiragi283.core.api.item.alchemy
Class HTMobEffectInstance
-
- All Implemented Interfaces:
-
hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.resource.HTKeyLike.HolderDelegate
public final class HTMobEffectInstance implements HTKeyLike.HolderDelegate<MobEffect>
-
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, HTMobEffectInstance>CODECprivate final Holder<MobEffect>effectprivate final Integerdurationprivate final Integeramplifierprivate final Booleanambientprivate final Booleanvisibleprivate final BooleanshowIconprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTMobEffectInstance(Holder<MobEffect> effect, Integer duration, Integer amplifier, Boolean ambient, Boolean visible, Boolean showIcon)HTMobEffectInstance(MobEffectInstance mutable)
-
Method Summary
Modifier and Type Method Description final Holder<MobEffect>getEffect()final IntegergetDuration()final IntegergetAmplifier()final BooleangetAmbient()final BooleangetVisible()final BooleangetShowIcon()StringgetNamespace()StringgetPath()final MobEffectInstancetoMutable()Holder<MobEffect>getHolder()保持しているHolderを返します。 -
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike.HolderDelegate
getResourceKey, isOf, isOf, isOf, isOf -
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike
getId, isOf, isOf -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEffect
final Holder<MobEffect> getEffect()
-
getDuration
final Integer getDuration()
-
getAmplifier
final Integer getAmplifier()
-
getAmbient
final Boolean getAmbient()
-
getVisible
final Boolean getVisible()
-
getShowIcon
final Boolean getShowIcon()
-
getNamespace
String getNamespace()
-
toMutable
final MobEffectInstance toMutable()
-
getHolder
Holder<MobEffect> getHolder()
保持しているHolderを返します。
-
-
-
-