UNPKG

typesforbukkit

Version:

Types For Bukkit

83 lines (65 loc) 4.86 kB
// API Link: https://tfb.neocities.org/1.18.2/org/bukkit/OfflinePlayer namespace org.bukkit { export interface OfflinePlayer extends org.bukkit.permissions.ServerOperator, org.bukkit.entity.AnimalTamer, org.bukkit.configuration.serialization.ConfigurationSerializable { /** @description Decrements the given statistic for this player */ decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType) : void; /** @description Decrements the given statistic for this player */ decrementStatistic(statistic: org.bukkit.Statistic, amount: int) : void; /** @description Decrements the given statistic for this player for the given entity */ decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType) : void; /** @description Decrements the given statistic for this player for the given entity */ decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: int) : void; /** @description Decrements the given statistic for this player for the given material */ decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material) : void; /** @description Decrements the given statistic for this player for the given material */ decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: int) : void; /** @description Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid */ getBedSpawnLocation() : org.bukkit.Location; /** @description Gets the first date and time that this player was witnessed on this server */ getFirstPlayed() : long; /** @description Gets the last date and time that this player was witnessed on this server */ getLastPlayed() : long; /** @description Returns the name of this player */ getName() : String; /** @description Gets a Player object that this represents, if there is one */ getPlayer() : org.bukkit.entity.Player; /** @description Gets a copy of the player's profile */ getPlayerProfile() : org.bukkit.profile.PlayerProfile; /** @description Gets the value of the given statistic for this player */ getStatistic(statistic: org.bukkit.Statistic) : int; /** @description Gets the value of the given statistic for this player */ getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType) : int; /** @description Gets the value of the given statistic for this player */ getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material) : int; /** @description Returns the UUID of this player */ getUniqueId() : java.util.UUID; /** @description Checks if this player has played on this server before */ hasPlayedBefore() : boolean; /** @description Increments the given statistic for this player */ incrementStatistic(statistic: org.bukkit.Statistic) : void; /** @description Increments the given statistic for this player */ incrementStatistic(statistic: org.bukkit.Statistic, amount: int) : void; /** @description Increments the given statistic for this player for the given entity */ incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType) : void; /** @description Increments the given statistic for this player for the given entity */ incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: int) : void; /** @description Increments the given statistic for this player for the given material */ incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material) : void; /** @description Increments the given statistic for this player for the given material */ incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: int) : void; /** @description Checks if this player is banned or not */ isBanned() : boolean; /** @description Checks if this player is currently online */ isOnline() : boolean; /** @description Checks if this player is whitelisted or not */ isWhitelisted() : boolean; /** @description Sets the given statistic for this player */ setStatistic(statistic: org.bukkit.Statistic, newValue: int) : void; /** @description Sets the given statistic for this player for the given entity */ setStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, newValue: int) : void; /** @description Sets the given statistic for this player for the given material */ setStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, newValue: int) : void; /** @description Sets if this player is whitelisted or not */ setWhitelisted(value: boolean) : void; } }