MobEffect
Link to mobeffect
Diese Klasse importieren
Link to diese-klasse-importieren
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.MobEffect;
Methoden
Link to methoden
Name: addAttributeModifier
Return Type: MobEffect
ZenScript CopyMobEffect.addAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation) as MobEffect
Parameter | Type | Beschreibung |
---|---|---|
Parameter attribute | Type Attribute | Beschreibung No Description Provided |
Parameter name | Type string | Beschreibung No Description Provided |
Parameter value | Type double | Beschreibung No Description Provided |
Parameter operation | Type AttributeOperation | Beschreibung No Description Provided |
Name: applyEffectTick
Return Type: void
ZenScript CopyMobEffect.applyEffectTick(entity as LivingEntity, amplifier as int) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter entity | Type LivingEntity | Beschreibung No Description Provided |
Parameter amplifier | Type int | Beschreibung No Description Provided |
Name: applyInstantenousEffect
Return Type: void
ZenScript CopyMobEffect.applyInstantenousEffect(source as Entity, indirectSource as Entity, target as LivingEntity, amplifier as int, effectiveness as double) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter quell | Type Entity | Beschreibung No Description Provided |
Parameter indirectSource | Type Entity | Beschreibung No Description Provided |
Parameter target | Type LivingEntity | Beschreibung No Description Provided |
Parameter amplifier | Type int | Beschreibung No Description Provided |
Parameter effectiveness | Type double | Beschreibung No Description Provided |
Name: getAttributeModifierValue
Return Type: double
ZenScript CopyMobEffect.getAttributeModifierValue(amplifier as int, modifier as AttributeModifier) as double
Parameter | Type | Beschreibung |
---|---|---|
Parameter amplifier | Type int | Beschreibung No Description Provided |
Parameter modifier | Type AttributeModifier | Beschreibung No Description Provided |
Name: getAttributeModifiers
Return Type: AttributeModifier[Attribute]
ZenScript Copy// MobEffect.getAttributeModifiers() as AttributeModifier[Attribute]
myMobEffect.getAttributeModifiers();
Name: getCategory
Return Type: MobEffectCategory
ZenScript Copy// MobEffect.getCategory() as MobEffectCategory
myMobEffect.getCategory();
Name: getColor
Return Type: int
ZenScript Copy// MobEffect.getColor() as int
myMobEffect.getColor();
Name: getDescriptionId
Return Type: string
ZenScript Copy// MobEffect.getDescriptionId() as string
myMobEffect.getDescriptionId();
Name: getDisplayName
Return Type: Component
ZenScript Copy// MobEffect.getDisplayName() as Component
myMobEffect.getDisplayName();
Name: isBeneficial
Return Type: boolean
ZenScript Copy// MobEffect.isBeneficial() as boolean
myMobEffect.isBeneficial();
Name: isDurationEffectTick
Return Type: boolean
ZenScript CopyMobEffect.isDurationEffectTick(duration as int, amplifier as int) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter duration | Type int | Beschreibung No Description Provided |
Parameter amplifier | Type int | Beschreibung No Description Provided |
Name: isInstantenous
Return Type: boolean
ZenScript Copy// MobEffect.isInstantenous() as boolean
myMobEffect.isInstantenous();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name beneficial | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name category | Type MobEffectCategory | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name color | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name commandString | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name descriptionId | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name displayName | Type Component | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name instantenous | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |