struct MCPing::Query::QueryBasic

Overview

A basic response from a server query.

Note that numeric fields are still represented as strings, as that is how the server returns them.

Defined in:

mcping/query.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(motd : Nil | String = nil, gametype : Nil | String = nil, map : Nil | String = nil, numplayers : Nil | String = nil, maxplayers : Nil | String = nil, hostport : Int16 | Nil = nil, hostip : Nil | String = nil) #

[View source]

Instance Method Detail

def gametype : String | Nil #

[View source]
def gametype=(gametype : String | Nil) #

[View source]
def hostip : String | Nil #

[View source]
def hostip=(hostip : String | Nil) #

[View source]
def hostport : Int16 | Nil #

[View source]
def hostport=(hostport : Int16 | Nil) #

[View source]
def map : String | Nil #

[View source]
def map=(map : String | Nil) #

[View source]
def maxplayers : String | Nil #

[View source]
def maxplayers=(maxplayers : String | Nil) #

[View source]
def motd : String | Nil #

[View source]
def motd=(motd : String | Nil) #

[View source]
def numplayers : String | Nil #

[View source]
def numplayers=(numplayers : String | Nil) #

[View source]