Class FakePlayerOption

java.lang.Object
net.minestom.server.entity.fakeplayer.FakePlayerOption

public class FakePlayerOption extends Object
Represents any options for a FakePlayer.
  • Constructor Details

    • FakePlayerOption

      public FakePlayerOption()
  • Method Details

    • isRegistered

      public boolean isRegistered()
      Gets if the player is registered internally as a Player.
      Returns:
      true if the player is registered in ConnectionManager, false otherwise
    • setRegistered

      public FakePlayerOption setRegistered(boolean registered)
      Sets the FakePlayer as registered or not.

      WARNING: this can't be changed halfway.

      Parameters:
      registered - should the fake player be registered internally
      Returns:
      this instance, allowing for chained method calls
    • isInTabList

      public boolean isInTabList()
      Gets if the player is visible in the tab-list or not.
      Returns:
      true if the player is in the tab-list, false otherwise
    • setInTabList

      public FakePlayerOption setInTabList(boolean inTabList)
      Sets the player in the tab-list or not.

      WARNING: this can't be changed halfway.

      Parameters:
      inTabList - should the player be in the tab-list
      Returns:
      this instance, allowing for chained method calls