TAG_Long

case
object TAG_Long extends NBTType[Long, NBTLong]
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait NBTType[Long, NBTLong]
trait SafeNBTView[Long, NBTLong]
trait NBTView[Long, NBTLong]
trait NBTSerializer[Long, NBTLong]
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: Long): NBTLong
Definition Classes

Inherited methods

def contramap[NewRepr](f: NewRepr => Long): NBTSerializer[NewRepr, NBTLong]

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 => NBTLong): SafeNBTDeserializer[Long, NewNBT]
Definition Classes
Inherited from
SafeNBTDeserializer
override
def from(arg: NBTLong): Option[Long]
Definition Classes
Inherited from
SafeNBTDeserializer
def fromProduct(p: Product): MirroredMonoType
Inherited from
Singleton
override
def fromSafe(arg: NBTLong): Long
Definition Classes
Inherited from
NBTType
override
def imap[NewRepr](f: Long => NewRepr, g: NewRepr => Long): SafeNBTView[NewRepr, NBTLong]
Definition Classes
Inherited from
SafeNBTView
override
def imapNbt[NewNBT <: NBTTag](f: NBTLong => NewNBT, g: NewNBT => NBTLong): SafeNBTView[Long, NewNBT]
Definition Classes
Inherited from
SafeNBTView
def imapOpt[NewRepr](f: Long => Option[NewRepr], g: NewRepr => Long): NBTView[NewRepr, NBTLong]
Inherited from
NBTView
override
def map[NewRepr](f: Long => NewRepr): SafeNBTDeserializer[NewRepr, NBTLong]
Definition Classes
Inherited from
SafeNBTDeserializer
def mapNbt[NewNBT <: NBTTag](f: NBTLong => NewNBT): NBTSerializer[Long, 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: NBTLong)(f: Long => 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: Long => Option[NewRepr]): NBTDeserializer[NewRepr, NBTLong]

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: NBTLong)(f: Long => 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