Skip to content

Commit

Permalink
Add TabListEntry#listed
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Apr 26, 2024
1 parent cb4ee93 commit 3710afb
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,23 @@ static Builder builder() {
*/
TabListEntry setGameMode(GameMode gameMode);

/**
* Gets whatever this entry is shown in the tab list.
* The entry is still sent to the client, however.
*
* @return Whatever this entry is listed
*/
boolean listed();

/**
* Sets whatever this entry is listed in the tab list.
* The entry is still sent to the client, however.
*
* @param listed Whatever to list this entry
* @return This entry, for chaining
*/
TabListEntry setListed(boolean listed);

/**
* Represents a builder class to create mutable {@link TabListEntry}s.
*
Expand Down Expand Up @@ -203,6 +220,16 @@ interface Builder extends org.spongepowered.api.util.Builder<TabListEntry, Build
*/
Builder gameMode(GameMode gameMode);

/**
* Sets whatever this entry is listed in the tab list.
* The entry is still sent to the client, however.
*
* @param listed Whatever to list this entry
* @return The builder
* @see TabListEntry#setListed(boolean)
*/
Builder listed(boolean listed);

/**
* Builds an entry based off the values of this builder.
*
Expand Down

0 comments on commit 3710afb

Please sign in to comment.