TAG_String

case
object TAG_String extends NBTType[String, NBTString]
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait NBTType[String, NBTString]
trait SafeNBTView[String, NBTString]
trait NBTView[String, NBTString]
trait NBTDeserializer[String, NBTString]
trait NBTSerializer[String, NBTString]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels = EmptyTuple
Inherited from
Singleton
type MirroredElemTypes = EmptyTuple
Inherited from
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror
type MirroredMonoType = Singleton
Inherited from
Singleton
type MirroredType = Singleton
Inherited from
Singleton

Value members

Concrete methods

override
def id: Byte
Definition Classes
override
def to(v: String): NBTString
Definition Classes

Inherited methods

def contramap[NewRepr](f: NewRepr => String): NBTSerializer[NewRepr, NBTString]

Create a new serializer that uses this serializer as a stepping stone.

Create a new serializer that uses this serializer as a stepping stone.

Inherited from
NBTSerializer
override
def contramapNbt[NewNBT <: NBTTag](f: NewNBT => NBTString): SafeNBTDeserializer[String, NewNBT]
Definition Classes
Inherited from
SafeNBTDeserializer
override
def from(arg: NBTString): Option[String]
Definition Classes
Inherited from
SafeNBTDeserializer
def fromProduct(p: Product): MirroredMonoType
Inherited from
Singleton
override
def fromSafe(arg: NBTString): String
Definition Classes
Inherited from
NBTType
override
def imap[NewRepr](f: String => NewRepr, g: NewRepr => String): SafeNBTView[NewRepr, NBTString]
Definition Classes
Inherited from
SafeNBTView
override
def imapNbt[NewNBT <: NBTTag](f: NBTString => NewNBT, g: NewNBT => NBTString): SafeNBTView[String, NewNBT]
Definition Classes
Inherited from
SafeNBTView
def imapOpt[NewRepr](f: String => Option[NewRepr], g: NewRepr => String): NBTView[NewRepr, NBTString]
Inherited from
NBTView
override
def map[NewRepr](f: String => NewRepr): SafeNBTDeserializer[NewRepr, NBTString]
Definition Classes
Inherited from
SafeNBTDeserializer
def mapNbt[NewNBT <: NBTTag](f: NBTString => NewNBT): NBTSerializer[String, NewNBT]

Maps the NBT that resulted from using this serializer.

Maps the NBT that resulted from using this serializer.

Inherited from
NBTSerializer
def modify[NewRepr, NewNBT <: NBTTag](nbt: NBTString)(f: String => NewRepr)(implicit newView: NBTView[NewRepr, NewNBT]): Option[NewNBT]

Modifies a nbt in value form before returning a new NBT. Thew two types of NBT does not have to be the same.

Modifies a nbt in value form before returning a new NBT. Thew two types of NBT does not have to be the same.

Type Params
NewNBT

The new NBT type

NewRepr

The new value type

Value Params
f

The function to apply to the NBT

nbt

The NBT to modify

newView

A view providing a way to get back to the world of NBTs after the modification.

Example
 val stringNbt: Option[NBTString] =
 NBTView.TagInt.modify(NBTInt(5))(_.toString) 
Inherited from
NBTView
def optMap[NewRepr](f: String => Option[NewRepr]): NBTDeserializer[NewRepr, NBTString]

Map the result of running this deserializer using a function that can fail.

Map the result of running this deserializer using a function that can fail.

Inherited from
NBTDeserializer
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def safeModify[NewRepr, NewNBT <: NBTTag](nbt: NBTString)(f: String => NewRepr)(implicit newView: NBTView[NewRepr, NewNBT]): NewNBT

Same as NBTView.modify except it uses SafeNBTDeserializer.fromSafe so the result isn't an option.

Same as NBTView.modify except it uses SafeNBTDeserializer.fromSafe so the result isn't an option.

Inherited from
SafeNBTView