PlayerXpEvent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.xp.PlayerXpEvent;

Extends

PlayerXpEvent extends PlayerEvent.

Members

Getter
script.zs
// PlayerXpEvent.entity as Player
myPlayerXpEvent.entity

Return Type: Player

Getter
script.zs
// PlayerXpEvent.entity as LivingEntity
myPlayerXpEvent.entity

Return Type: LivingEntity

Getter
script.zs
// PlayerXpEvent.entity as Entity
myPlayerXpEvent.entity

Return Type: Entity