minecraft

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package minecraft contains a Transformer implementation for the JSON specification of minecraft format strings see https://minecraft.gamepedia.com/Raw_JSON_text_format for a full look at the format itself

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer struct{}

Transformer implements the transformer interface for Minecraft 1.8+ JSON formatting. The implementation is one way, ie, intermed -> minecraft. minecraft -> intermed simply escapes all sentinels

func (Transformer) MakeIntermediate

func (Transformer) MakeIntermediate(in string) string

MakeIntermediate just returns the given strings escaped, as MineCraft servers dont output formatted strings ever

func (Transformer) Transform

func (Transformer) Transform(in string) string

Transform implements the transformer interface for Minecraft servers.

Jump to

Keyboard shortcuts

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