Tags
Overview
Tag<String> myTag = Tag.String("key");
Entity entity = ...;
String data = entity.getTag(myTag);API
Map
Tag<String> stringTag = Tag.String("my-string");
// You should also ensure that the string is a valid uuid!
Tag<UUID> mappedTag = stringTag.map(UUID::fromString, UUID::toString);
UUID uuid = instance.getTag(mappedTag);Default value
TagSerializer
Structure
View
Last updated
Was this helpful?
