ProjectileImpactFireball
This event is fired whenever a fireball impacts an entity but before damage, etc, is calculated. It is cancelable, and if canceled, the impact will not be processed.
Acceleration values from the fireball entity are available through zengetters.
Importing the class
It might be required to import the class to avoid errors.
import crafttweaker.event.ProjectileImpactFireballEvent;
Event interface extensions
ProjectileImpactFireball Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
ZenGetters/ZenSetters
The following information can be retrieved from the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter fireball | ZenSetter | Type IEntity |
ZenGetter shooter | ZenSetter | Type IEntityLivingBase |
ZenGetter accelerationX | ZenSetter accelerationX | Type double |
ZenGetter accelerationY | ZenSetter accelerationY | Type double |
ZenGetter accelerationZ | ZenSetter accelerationZ | Type double |
ZenGetters/ZenSetters/ZenMethods from extensions
The following information can be retrieved/set during the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter canceled | ZenSetter canceled | Type bool |
ZenGetter rayTrace | ZenSetter | Type IRayTraceResult |
ZenMethods
event.cancel();
Method, returns void (nothing). Can cancel the event and stop something from happening
Extensions from extensions
The following information can be retrieved from the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter entity | ZenSetter | Type IEntity |