Class Wander

java.lang.Object
ua.mcchickenstudio.opencreative.wanders.OfflineWander
ua.mcchickenstudio.opencreative.wanders.Wander
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered

public final class Wander extends OfflineWander implements net.kyori.adventure.audience.Audience

Wander

This class represents wander, that could be online. Wander is a player, who plays on planets. He has nickname, description, gender, favorite worlds and last played world.
  • Constructor Details

    • Wander

      public Wander(@NotNull @NotNull org.bukkit.entity.Player player)
  • Method Details

    • getGriefStats

      @NotNull public @NotNull GriefStats getGriefStats()
      Returns statistics of destructive changes to world.

      It will be cleared, when player leaves the world.

      Returns:
      grief statistics.
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
    • getCurrentPlanet

      @Nullable public @Nullable Planet getCurrentPlanet()
      Returns current planet, where wander is currently in.
      Returns:
      current planet, or null.
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • sendActionBar

      public void sendActionBar(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendActionBar in interface net.kyori.adventure.audience.Audience
    • showTitle

      public void showTitle(@NotNull @NotNull net.kyori.adventure.title.Title title)
      Specified by:
      showTitle in interface net.kyori.adventure.audience.Audience
    • setConnectingToPlanet

      public void setConnectingToPlanet(boolean connectingToPlanet)
      Sets whether wander is currently connecting to planet.
      Parameters:
      connectingToPlanet - whether wander is connecting to planet or not.
    • isConnectingToPlanet

      public boolean isConnectingToPlanet()
      Checks whether wander is trying to connect to some planet.
      Returns:
      true - is connecting, false - not connecting.