public class ComponentTransformer extends java.lang.Object implements EntityDataTransformer<java.lang.String,net.kyori.adventure.text.Component>
| Modifier and Type | Field and Description |
|---|---|
static ComponentTransformer |
INSTANCE |
IDENTITY| Modifier and Type | Method and Description |
|---|---|
net.kyori.adventure.text.Component |
deserialize(BedrockCodecHelper helper,
EntityDataMap map,
java.lang.String value) |
java.lang.String |
serialize(BedrockCodecHelper helper,
EntityDataMap map,
net.kyori.adventure.text.Component value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic static final ComponentTransformer INSTANCE
public java.lang.String serialize(BedrockCodecHelper helper, EntityDataMap map, net.kyori.adventure.text.Component value)
serialize in interface EntityDataTransformer<java.lang.String,net.kyori.adventure.text.Component>public net.kyori.adventure.text.Component deserialize(BedrockCodecHelper helper, EntityDataMap map, java.lang.String value)
deserialize in interface EntityDataTransformer<java.lang.String,net.kyori.adventure.text.Component>