MobEffectInstance
Link to mobeffectinstance
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.effect.MobEffectInstance;
Interfacce Implementate
Link to interfacce-implementate
MobEffectInstance implements the following interfaces. That means all methods defined in these interfaces are also available in MobEffectInstance
- Comparable<MobEffectInstance>
Static Methods
Link to static-methods
Name: load
Return Type: MobEffectInstance
ZenScript CopyMobEffectInstance.load(data as MapData) as MobEffectInstance
Parametro | Tipo | Descrizione |
---|---|---|
Parametro data | Tipo MapData | Descrizione No Description Provided |
Metodi
Link to metodi
Name: applyEffect
Return Type: void
ZenScript CopyMobEffectInstance.applyEffect(entity as LivingEntity) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo LivingEntity | Descrizione No Description Provided |
Name: compareTo
Return Type: int
ZenScript CopyMobEffectInstance.compareTo(other as MobEffectInstance) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo MobEffectInstance | Descrizione No Description Provided |
Name: getAmplifier
Return Type: int
ZenScript Copy// MobEffectInstance.getAmplifier() as int
myMobEffectInstance.getAmplifier();
Name: getDescriptionId
Return Type: string
ZenScript Copy// MobEffectInstance.getDescriptionId() as string
myMobEffectInstance.getDescriptionId();
Name: getDuration
Return Type: int
ZenScript Copy// MobEffectInstance.getDuration() as int
myMobEffectInstance.getDuration();
Name: getEffect
Return Type: MobEffect
ZenScript Copy// MobEffectInstance.getEffect() as MobEffect
myMobEffectInstance.getEffect();
Name: isAmbient
Return Type: boolean
ZenScript Copy// MobEffectInstance.isAmbient() as boolean
myMobEffectInstance.isAmbient();
Name: isNoCounter
Return Type: boolean
ZenScript Copy// MobEffectInstance.isNoCounter() as boolean
myMobEffectInstance.isNoCounter();
Name: isVisible
Return Type: boolean
ZenScript Copy// MobEffectInstance.isVisible() as boolean
myMobEffectInstance.isVisible();
Name: setNoCounter
Return Type: void
ZenScript CopyMobEffectInstance.setNoCounter(noCounter as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro noCounter | Tipo boolean | Descrizione No Description Provided |
Name: showIcon
Return Type: boolean
ZenScript Copy// MobEffectInstance.showIcon() as boolean
myMobEffectInstance.showIcon();
Name: tick
Return Type: boolean
ZenScript CopyMobEffectInstance.tick(entity as LivingEntity, onFinish as Runnable) as boolean
Parametro | Tipo | Descrizione | Optional | DefaultValue |
---|---|---|---|---|
Parametro entity | Tipo LivingEntity | Descrizione No Description Provided | Optional no | DefaultValue |
Parametro onFinish | Tipo Runnable | Descrizione No Description Provided | Optional sì | DefaultValue () => {} |
Name: update
Return Type: boolean
ZenScript CopyMobEffectInstance.update(instance as MobEffectInstance) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro instance | Tipo MobEffectInstance | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome ambient | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome amplifier | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome descriptionId | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome duration | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome effect | Tipo MobEffect | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isNoCounter | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome showIcon | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome visible | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |