@ApiStatus.Internal public final class MasterServer extends Object
MasterServer class.
| Modifier and Type | Field and Description |
|---|---|
static String |
INITIAL_IP
Constant
INITIAL_IP="0.0.0.0:0" |
static InetSocketAddress |
MASTER_ADDR
Constant
MASTER_ADDR |
static InetSocketAddress[] |
MASTER_ADDRS
Constant
MASTER_ADDRS |
static int |
REGION_AFRICA
Constant
REGION_AFRICA=0x07 |
static int |
REGION_ASIA
Constant
REGION_ASIA=0x04 |
static int |
REGION_AUSTRALIA
Constant
REGION_AUSTRALIA=0x05 |
static int |
REGION_EUROPE
Constant
REGION_EUROPE=0x03 |
static int |
REGION_MIDDLE_EAST
Constant
REGION_MIDDLE_EAST=0x06 |
static int |
REGION_SOUTH_AMERICA
Constant
REGION_SOUTH_AMERICA=0x02 |
static int |
REGION_US_EAST
Constant
REGION_US_EAST=0x00 |
static int |
REGION_US_WEST
Constant
REGION_US_WEST=0x01 |
static int |
REGION_WORLD
Constant
REGION_WORLD=0xFF |
static int |
SOURCE_MASTER_TYPE
Constant
SOURCE_MASTER_TYPE=0x31 |
| Constructor and Description |
|---|
MasterServer() |
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress[] |
getAddresses(MasterServerType type)
getAddresses.
|
static InetSocketAddress[] |
getCachedMasterAddress(MasterServerType type,
boolean forceRefresh)
getCachedMasterAddress.
|
static boolean |
isHeaderPacket(MasterServerAddressPacket packet)
isHeaderPacket.
|
static boolean |
isTerminatingAddress(InetSocketAddress address)
isTerminatingAddress.
|
static boolean |
isTerminatingPacket(MasterServerAddressPacket packet)
isTerminatingPacket.
|
public static final InetSocketAddress MASTER_ADDR
MASTER_ADDRpublic static final InetSocketAddress[] MASTER_ADDRS
MASTER_ADDRSpublic static final int SOURCE_MASTER_TYPE
SOURCE_MASTER_TYPE=0x31public static final String INITIAL_IP
INITIAL_IP="0.0.0.0:0"public static final int REGION_US_EAST
REGION_US_EAST=0x00public static final int REGION_US_WEST
REGION_US_WEST=0x01public static final int REGION_SOUTH_AMERICA
REGION_SOUTH_AMERICA=0x02public static final int REGION_EUROPE
REGION_EUROPE=0x03public static final int REGION_ASIA
REGION_ASIA=0x04public static final int REGION_AUSTRALIA
REGION_AUSTRALIA=0x05public static final int REGION_MIDDLE_EAST
REGION_MIDDLE_EAST=0x06public static final int REGION_AFRICA
REGION_AFRICA=0x07public static final int REGION_WORLD
REGION_WORLD=0xFFpublic static boolean isHeaderPacket(MasterServerAddressPacket packet)
isHeaderPacket.
packet - a MasterServerAddressPacket objectpublic static boolean isTerminatingPacket(MasterServerAddressPacket packet)
isTerminatingPacket.
packet - a MasterServerAddressPacket objectpublic static boolean isTerminatingAddress(InetSocketAddress address)
isTerminatingAddress.
address - a InetSocketAddress objectpublic static InetSocketAddress[] getCachedMasterAddress(MasterServerType type, boolean forceRefresh)
getCachedMasterAddress.
type - a MasterServerType objectforceRefresh - a booleanInetSocketAddress objectspublic static InetSocketAddress[] getAddresses(MasterServerType type)
getAddresses.
type - a MasterServerType objectInetSocketAddress objectsCopyright © 2016–2024. All rights reserved.