Class NullPlayer

java.lang.Object
us.talabrek.ultimateskyblock.uuid.NullPlayer
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.entity.AnimalTamer, org.bukkit.OfflinePlayer, org.bukkit.permissions.ServerOperator

public class NullPlayer extends Object implements org.bukkit.OfflinePlayer
  • Field Details

    • INSTANCE

      public static final NullPlayer INSTANCE
  • Method Details

    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface org.bukkit.OfflinePlayer
    • getName

      public String getName()
      Specified by:
      getName in interface org.bukkit.entity.AnimalTamer
      Specified by:
      getName in interface org.bukkit.OfflinePlayer
    • getUniqueId

      public UUID getUniqueId()
      Specified by:
      getUniqueId in interface org.bukkit.entity.AnimalTamer
      Specified by:
      getUniqueId in interface org.bukkit.OfflinePlayer
    • getPlayerProfile

      @NotNull public @NotNull org.bukkit.profile.PlayerProfile getPlayerProfile()
      Specified by:
      getPlayerProfile in interface org.bukkit.OfflinePlayer
    • isBanned

      public boolean isBanned()
      Specified by:
      isBanned in interface org.bukkit.OfflinePlayer
    • ban

      @Nullable public @Nullable org.bukkit.BanEntry<org.bukkit.profile.PlayerProfile> ban(@Nullable @Nullable String s, @Nullable @Nullable Date date, @Nullable @Nullable String s1)
      Specified by:
      ban in interface org.bukkit.OfflinePlayer
    • ban

      @Nullable public @Nullable org.bukkit.BanEntry<org.bukkit.profile.PlayerProfile> ban(@Nullable @Nullable String s, @Nullable @Nullable Instant instant, @Nullable @Nullable String s1)
      Specified by:
      ban in interface org.bukkit.OfflinePlayer
    • ban

      @Nullable public @Nullable org.bukkit.BanEntry<org.bukkit.profile.PlayerProfile> ban(@Nullable @Nullable String s, @Nullable @Nullable Duration duration, @Nullable @Nullable String s1)
      Specified by:
      ban in interface org.bukkit.OfflinePlayer
    • isWhitelisted

      public boolean isWhitelisted()
      Specified by:
      isWhitelisted in interface org.bukkit.OfflinePlayer
    • setWhitelisted

      public void setWhitelisted(boolean b)
      Specified by:
      setWhitelisted in interface org.bukkit.OfflinePlayer
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Specified by:
      getPlayer in interface org.bukkit.OfflinePlayer
    • getFirstPlayed

      public long getFirstPlayed()
      Specified by:
      getFirstPlayed in interface org.bukkit.OfflinePlayer
    • getLastPlayed

      public long getLastPlayed()
      Specified by:
      getLastPlayed in interface org.bukkit.OfflinePlayer
    • hasPlayedBefore

      public boolean hasPlayedBefore()
      Specified by:
      hasPlayedBefore in interface org.bukkit.OfflinePlayer
    • getBedSpawnLocation

      public org.bukkit.Location getBedSpawnLocation()
      Specified by:
      getBedSpawnLocation in interface org.bukkit.OfflinePlayer
    • getRespawnLocation

      @Nullable public @Nullable org.bukkit.Location getRespawnLocation()
      Specified by:
      getRespawnLocation in interface org.bukkit.OfflinePlayer
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int newValue) throws IllegalArgumentException
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int newValue) throws IllegalArgumentException
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount)
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int newValue)
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
    • getLastDeathLocation

      @Nullable public @Nullable org.bukkit.Location getLastDeathLocation()
      Specified by:
      getLastDeathLocation in interface org.bukkit.OfflinePlayer
    • getLocation

      @Nullable public @Nullable org.bukkit.Location getLocation()
      Specified by:
      getLocation in interface org.bukkit.OfflinePlayer
    • serialize

      public Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • isOp

      public boolean isOp()
      Specified by:
      isOp in interface org.bukkit.permissions.ServerOperator
    • setOp

      public void setOp(boolean b)
      Specified by:
      setOp in interface org.bukkit.permissions.ServerOperator