Uses of Enum Class
com.andrei1058.bedwars.api.events.player.PlayerXpGainEvent.XpSource
-
Uses of PlayerXpGainEvent.XpSource in com.andrei1058.bedwars.api.events.player
Modifier and TypeMethodDescriptionPlayerXpGainEvent.getXpSource()
Get xp sourcestatic PlayerXpGainEvent.XpSource
Returns the enum constant of this class with the specified name.static PlayerXpGainEvent.XpSource[]
PlayerXpGainEvent.XpSource.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionPlayerXpGainEvent
(org.bukkit.entity.Player player, int amount, PlayerXpGainEvent.XpSource xpSource) Called when a player receives new xp. -
Uses of PlayerXpGainEvent.XpSource in com.andrei1058.bedwars.api.levels
Modifier and TypeMethodDescriptionvoid
Level.addXp
(org.bukkit.entity.Player player, int xp, PlayerXpGainEvent.XpSource source) Add some xp to target player.