A safe variant of the case like mixin.
- Companion
- object
Value members
Concrete methods
- Definition Classes
Inherited methods
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
A safer version of NBTDeserializer.from that can't fail.
A safer version of NBTDeserializer.from that can't fail.
- Inherited from
- SafeNBTDeserializer
Maps the NBT that resulted from using this serializer.
Maps the NBT that resulted from using this serializer.
- Inherited from
- NBTSerializer
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
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
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