MobEffectInstance
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.
Implemented Interfaces
MobEffectInstance implements the following interfaces. That means all methods defined in these interfaces are also available in MobEffectInstance
- Comparable<MobEffectInstance>
Static Methods
Return Type: MobEffectInstance
Parameter | Type |
---|---|
Parameter data | Type MapData |
Constructors
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter duration | Type int |
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter duration | Type int |
Parameter amplifier | Type int |
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter duration | Type int |
Parameter amplifier | Type int |
Parameter ambient | Type boolean |
Parameter visible | Type boolean |
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter duration | Type int |
Parameter amplifier | Type int |
Parameter ambient | Type boolean |
Parameter visible | Type boolean |
Parameter showIcon | Type boolean |
Parameter | Type |
---|---|
Parameter mobEffect | Type MobEffect |
Parameter duration | Type int |
Parameter amplifier | Type int |
Parameter ambient | Type boolean |
Parameter visible | Type boolean |
Parameter showIcon | Type boolean |
Parameter hiddenEffect | Type MobEffectInstance |
Methods
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Return Type: int
Parameter | Type |
---|---|
Parameter other | Type MobEffectInstance |
Return Type: int
Return Type: string
Return Type: int
Return Type: MobEffect
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter noCounter | Type boolean |
Return Type: boolean
Return Type: boolean
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter entity | Type LivingEntity | Optional false | Default Value |
Parameter onFinish | Type Runnable? | Optional true | Default Value null |
Return Type: boolean
Parameter | Type |
---|---|
Parameter instance | Type MobEffectInstance |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name ambient | Type boolean | Has Getter true | Has Setter false |
Name amplifier | Type int | Has Getter true | Has Setter false |
Name descriptionId | Type string | Has Getter true | Has Setter false |
Name duration | Type int | Has Getter true | Has Setter false |
Name effect | Type MobEffect | Has Getter true | Has Setter false |
Name isNoCounter | Type boolean | Has Getter true | Has Setter false |
Name showIcon | Type boolean | Has Getter true | Has Setter false |
Name visible | Type boolean | Has Getter true | Has Setter false |