IPlayerEvent
Link to iplayerevent
This interface is extended by all events that have a player.
That means you can use the getter below to access the player.
Note
Link to note
The IPlayer is an extension of the class IEntityLivingBase ,
thus with event.player
you have access to all ZenGetters/ZenSetters from IEntityLivingBase already.
Importing the class
Link to importing-the-class
It might be required to import the class to avoid errors.
import crafttweaker.event.IPlayerEvent;
Extending ILivingEvent
Link to extending-ilivingevent
This interface extends ILivingEvent, which means that all functionality that ILivingEvent offers is also present in IPlayerEvent
ZenGetters/ZenSetters
Link to zengetterszensetters
The following information can be retrieved from the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter player | ZenSetter | Type IPlayer |
ZenGetters/ZenSetters/ZenMethods from extensions
Link to zengetterszensetterszenmethods-from-extensions
The following information can be retrieved/set during the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter entityLivingBase | ZenSetter | Type IEntityLivingBase |