MobEffectInstance
Link to mobeffectinstance
Importing the class
Link to importing-the-class
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;
Implemented Interfaces
Link to implemented-interfaces
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
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description No Description Provided |
Methods
Link to methods
Name: applyEffect
Return Type: void
ZenScript CopyMobEffectInstance.applyEffect(entity as LivingEntity) as void
Parameter | Type | Description |
---|---|---|
Parameter entity | Type LivingEntity | Description No Description Provided |
Name: compareTo
Return Type: int
ZenScript CopyMobEffectInstance.compareTo(other as MobEffectInstance) as int
Parameter | Type | Description |
---|---|---|
Parameter other | Type MobEffectInstance | Description 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
Parameter | Type | Description |
---|---|---|
Parameter noCounter | Type boolean | Description 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
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter entity | Type LivingEntity | Description No Description Provided | Optional false | DefaultValue |
Parameter onFinish | Type Runnable | Description No Description Provided | Optional true | DefaultValue () => {} |
Name: update
Return Type: boolean
ZenScript CopyMobEffectInstance.update(instance as MobEffectInstance) as boolean
Parameter | Type | Description |
---|---|---|
Parameter instance | Type MobEffectInstance | Description No Description Provided |
Properties
Link to properties
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 ambient | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
이름 amplifier | Type int | Has Getter true | Has Setter false | Description No Description Provided |
이름 descriptionId | Type string | Has Getter true | Has Setter false | Description No Description Provided |
이름 duration | Type int | Has Getter true | Has Setter false | Description No Description Provided |
이름 effect | Type MobEffect | Has Getter true | Has Setter false | Description No Description Provided |
이름 isNoCounter | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
이름 showIcon | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
이름 visible | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |