class MCProtocol::Root

Overview

Represents a root directory or file that the server can operate on.

Included Modules

Defined in:

mcprotocol/root.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(uri : URI, name : String | Nil = Nil) #

[View source]

Instance Method Detail

def name : String | Nil #

An optional name for the root. This can be used to provide a human-readable identifier for the root, which may be useful for display purposes or for referencing the root in other parts of the application.


[View source]
def uri : URI #

The URI identifying the root. This must start with file:// for now. This restriction may be relaxed in future versions of the protocol to allow other URI schemes.


[View source]