NBTByteArray

final case
class NBTByteArray(value: IndexedSeq[Byte]) extends NBTTag
trait Serializable
trait Product
trait Equals
trait NBTTag
class Object
trait Matchable
class Any

Type members

Types

override
type Repr = IndexedSeq[Byte]

Value members

Concrete methods

Definition Classes

Inherited methods

def modify[NewRepr, NewNBT <: NBTTag](f: Repr => NewRepr)(implicit serializer: NBTSerializer[NewRepr, NewNBT]): NewNBT

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

Modifies this 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

serializer

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

Example
val stringNbt: NBTString = NBTInt(5).modify(_.toString)
Inherited from
NBTTag
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product