NBTByteArray
final case
Type members
Types
Value members
Concrete methods
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