public class PrepareGameRequest implements AdminLobbyRequest
Request to prepare a game of gameType with two reserved slots according to slotDescriptors.
public PrepareGameRequest(@NotNull
java.lang.String gameType,
@NotNull
SlotDescriptor[] slotDescriptors,
boolean pause)
Request to prepare a game of gameType with two reserved slots according to slotDescriptors.
@JvmOverloads
public PrepareGameRequest(@NotNull
java.lang.String gameType,
@NotNull
SlotDescriptor descriptor1,
@NotNull
SlotDescriptor descriptor2,
boolean pause)
Create a prepared game with descriptors for each player. The player descriptors default to "Player1" and "Player2".
gameType - type of the game (plugin id)pause - whether the game should start paused@JvmOverloads
public PrepareGameRequest(@NotNull
java.lang.String gameType,
@NotNull
SlotDescriptor descriptor1,
@NotNull
SlotDescriptor descriptor2)
Create a prepared game with descriptors for each player. The player descriptors default to "Player1" and "Player2".
gameType - type of the game (plugin id)@JvmOverloads
public PrepareGameRequest(@NotNull
java.lang.String gameType,
@NotNull
SlotDescriptor descriptor1)
Create a prepared game with descriptors for each player. The player descriptors default to "Player1" and "Player2".
gameType - type of the game (plugin id)@JvmOverloads
public PrepareGameRequest(@NotNull
java.lang.String gameType)
Create a prepared game with descriptors for each player. The player descriptors default to "Player1" and "Player2".
gameType - type of the game (plugin id)public boolean equals(@Nullable
java.lang.Object other)
public int hashCode()
@NotNull public java.lang.String getGameType()
@NotNull public SlotDescriptor[] getSlotDescriptors()
public boolean getPause()
@NotNull public java.lang.String component1()
@NotNull public SlotDescriptor[] component2()
public boolean component3()
@NotNull public PrepareGameRequest copy(@NotNull java.lang.String gameType, @NotNull SlotDescriptor[] slotDescriptors, boolean pause)
Request to prepare a game of gameType with two reserved slots according to slotDescriptors.
@NotNull public java.lang.String toString()
Request to prepare a game of gameType with two reserved slots according to slotDescriptors.