A special type of NBTView that represents a real nbt type. It's also both safe and contains the numerical id of the type.
- Companion
- object
Value members
Abstract methods
A safer version of NBTDeserializer.from that can't fail.
A safer version of NBTDeserializer.from that can't fail.
Concrete 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.
Create a new deserializer that changes the NBT type and uses this deserializer as a stepping stone.
Create a new deserializer that changes the NBT type and uses this deserializer as a stepping stone.
Map the result of running this deserializer.
Map the result of running this deserializer.
Maps the NBT that resulted from using this serializer.
Maps the NBT that resulted from using this serializer.
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)
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 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
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
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
Create a new deserializer that changes the NBT type and uses this deserializer as a stepping stone.
Create a new deserializer that changes the NBT type and uses this deserializer as a stepping stone.
- Inherited from
- NBTDeserializer
Convert a value from NBT.
Convert a value from NBT.
- Inherited from
- NBTDeserializer
Map the result of running this deserializer.
Map the result of running this deserializer.
- Inherited from
- NBTDeserializer
Maps the NBT that resulted from using this serializer.
Maps the NBT that resulted from using this serializer.
- Inherited from
- NBTSerializer
Maps the NBT that resulted from using this serializer.
Maps the NBT that resulted from using this serializer.
- Inherited from
- NBTSerializer
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
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
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
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
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
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
Convert a value to NBT.
Convert a value to NBT.
- Inherited from
- NBTSerializer