public enum Dist extends java.lang.Enum<Dist>
CLIENT
is the client distribution, it contains
the game client, and has code to render a viewport into a game world.DEDICATED_SERVER
is the dedicated server distribution,
it contains a server, which can simulate the world and communicates via network.列挙型定数と説明 |
---|
CLIENT
The client distribution.
|
DEDICATED_SERVER
The dedicated server distribution.
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
isClient() |
boolean |
isDedicatedServer() |
static Dist |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Dist[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Dist CLIENT
public static final Dist DEDICATED_SERVER
public static Dist[] values()
for(Dist c: Dist.values()) System.out.println(c);
public static Dist valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public boolean isDedicatedServer()
public boolean isClient()