@@ -18,51 +18,58 @@ public class QueueBuilder {
1818 /**
1919 * @param name the name of Queue
2020 */
21- public void setName (String name ) {
21+ public QueueBuilder setName (String name ) {
2222 this .name =name ;
23+ return this ;
2324 }
2425
2526 /**
2627 * @param type Custom type of the Queue
2728 */
28- public void setType (String type ) {
29+ public QueueBuilder setType (String type ) {
2930 this .type =type ;
31+ return this ;
3032 }
3133
3234 /**
3335 * @param maxPlayer Maximum player count of Queue
3436 */
35- public void setMaxPlayer (int maxPlayer ) {
37+ public QueueBuilder setMaxPlayer (int maxPlayer ) {
3638 this .maxPlayer = maxPlayer ;
39+ return this ;
3740 }
3841
3942 /**
4043 * @param minPlayer Minimum of the player to start Queue
4144 */
42- public void setMinPlayer (int minPlayer ) {
45+ public QueueBuilder setMinPlayer (int minPlayer ) {
4346 this .minPlayer = minPlayer ;
47+ return this ;
4448 }
4549
4650 /**
4751 * @param mapUid UUID of the world that player is moved when join Queue
4852 */
49- public void setMapUid (UUID mapUid ) {
53+ public QueueBuilder setMapUid (UUID mapUid ) {
5054 this .mapUid = mapUid ;
55+ return this ;
5156 }
5257
5358 /**
5459 * @param queuemapUUID UUID of the world that player is moved when Queue starts
5560 */
56- public void setQueuemapUUID (@ Nullable UUID queuemapUUID ) {
61+ public QueueBuilder setQueuemapUUID (@ Nullable UUID queuemapUUID ) {
5762 this .queuemapUUID = queuemapUUID ;
63+ return this ;
5864 }
5965
6066 /**
6167 * @param isDisposable If is True, when Queue Starts. It automatically removed
6268 * @apiNote Default is TRUE
6369 */
64- public void setDisposable (boolean isDisposable ) {
70+ public QueueBuilder setDisposable (boolean isDisposable ) {
6571 this .isDisposable =isDisposable ;
72+ return this ;
6673 }
6774
6875 public Queue build () {
0 commit comments