Allow chained method calls on FakePlayerOption (#507)

This commit is contained in:
Luke Bingham 2021-10-30 20:03:18 +01:00 committed by GitHub
parent 50a0c13120
commit 3be4edc096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -25,9 +25,11 @@ public class FakePlayerOption {
* WARNING: this can't be changed halfway.
*
* @param registered should the fake player be registered internally
* @return this instance, allowing for chained method calls
*/
public void setRegistered(boolean registered) {
public FakePlayerOption setRegistered(boolean registered) {
this.registered = registered;
return this;
}
/**
@ -45,8 +47,10 @@ public class FakePlayerOption {
* WARNING: this can't be changed halfway.
*
* @param inTabList should the player be in the tab-list
* @return this instance, allowing for chained method calls
*/
public void setInTabList(boolean inTabList) {
public FakePlayerOption setInTabList(boolean inTabList) {
this.inTabList = inTabList;
return this;
}
}