C# 클래스 Sharpcraft.Library.Minecraft.Server

Server object, used as reference when connecting to a server.
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Address string
Description string
Name string
Online bool
Ping int

공개 메소드들

메소드 설명
Server ( string name, string address, ushort port = 25565, string description = "", int players, int maxPlayers, int ping, bool online = false, int mode )

Initialize a new Server.

name and address are the only required parameters, rest is optional and will be set to their default if omitted.

SetMode ( int mode ) : void

Set the mode of this server.

메소드 상세

Server() 공개 메소드

Initialize a new Server.
name and address are the only required parameters, rest is optional and will be set to their default if omitted.
public Server ( string name, string address, ushort port = 25565, string description = "", int players, int maxPlayers, int ping, bool online = false, int mode )
name string Name of the server.
address string Address of the server.
port ushort Server's port.
description string Server's description.
players int Number of players currently on the server.
maxPlayers int Maximum players allowed on the server.
ping int Server ping.
online bool Is the server online?
mode int The mode of the server (0 = Survival, 1 = Creative).

SetMode() 공개 메소드

Set the mode of this server.
public SetMode ( int mode ) : void
mode int Mode to set.
리턴 void

프로퍼티 상세

Address 공개적으로 프로퍼티

Address of the server, usually an IP address.
public string Address
리턴 string

Description 공개적으로 프로퍼티

Description of the server, usually broadcasted by the server itself.
public string Description
리턴 string

Name 공개적으로 프로퍼티

Name of the server, or "title".
public string Name
리턴 string

Online 공개적으로 프로퍼티

Whether or not the server is currently online.
public bool Online
리턴 bool

Ping 공개적으로 프로퍼티

Ping (latency) of the server.
public int Ping
리턴 int