bridge

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bridge contains packages for setting up a bridge between proxies of different Minecraft editions. Refer to Bridge struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	// At least one edition must be set.
	JavaProxy    *jproxy.Proxy // Holds java edition players.
	BedrockProxy *bproxy.Proxy // Holds bedrock edition players
	// contains filtered or unexported fields
}

Bridge allows "cross-play" between different Minecraft edition (Bedrock <-> Java) proxies. Exposed fields in this struct should be set before calling Setup.

It does so by registering various handlers and interceptors to the given proxies to translate connection protocols.

This struct may only be useful until Setup was called and can get garbage collected afterwards.

func (*Bridge) Setup

func (b *Bridge) Setup() (err error)

Setup sets up the bridge between the given proxies.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL