Class FakePlayerOption
java.lang.Object
net.minestom.server.entity.fakeplayer.FakePlayerOption
Represents any options for a
FakePlayer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets if the player is visible in the tab-list or not.booleanGets if the player is registered internally as a Player.setInTabList(boolean inTabList) Sets the player in the tab-list or not.setRegistered(boolean registered) Sets the FakePlayer as registered or not.
-
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
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
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
-