MobEffect
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.
Methods
Return Type: MobEffect
Parameter | Type |
---|---|
Parameter attribute | Type Attribute |
Parameter name | Type string |
Parameter value | Type double |
Parameter operation | Type AttributeOperation |
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Parameter amplifier | Type int |
Parameter | Type |
---|---|
Parameter source | Type Entity |
Parameter indirectSource | Type Entity |
Parameter target | Type LivingEntity |
Parameter amplifier | Type int |
Parameter effectiveness | Type double |
Return Type: double
Parameter | Type |
---|---|
Parameter amplifier | Type int |
Parameter modifier | Type AttributeModifier |
Return Type: AttributeModifier[Attribute]
Return Type: MobEffectCategory
Return Type: int
Return Type: string
Return Type: Component
Return Type: ResourceLocation
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter duration | Type int |
Parameter amplifier | Type int |
Return Type: boolean
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name beneficial | Type boolean | Has Getter true | Has Setter false |
Name category | Type MobEffectCategory | Has Getter true | Has Setter false |
Name color | Type int | Has Getter true | Has Setter false |
Name commandString | Type string | Has Getter true | Has Setter false |
Name descriptionId | Type string | Has Getter true | Has Setter false |
Name displayName | Type Component | Has Getter true | Has Setter false |
Name instantenous | Type boolean | Has Getter true | Has Setter false |
Name registryName | Type ResourceLocation | Has Getter true | Has Setter false |