Modifier and Type | Field and Description |
---|---|
private List<Tag.TrackedEntry> |
entries |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Tag.Builder |
add(Identifier id,
String source) |
Tag.Builder |
add(Tag.Entry entry,
String source) |
Tag.Builder |
add(Tag.TrackedEntry trackedEntry) |
Tag.Builder |
addTag(Identifier id,
String source) |
<T> Optional<Tag<T>> |
build(Function<Identifier,Tag<T>> tagGetter,
Function<Identifier,T> objectGetter) |
static Tag.Builder |
create() |
Tag.Builder |
read(JsonObject json,
String source) |
private static Tag.Entry |
resolveEntry(JsonElement json) |
Stream<Tag.TrackedEntry> |
streamEntries() |
<T> Stream<Tag.TrackedEntry> |
streamUnresolvedEntries(Function<Identifier,Tag<T>> tagGetter,
Function<Identifier,T> objectGetter) |
JsonObject |
toJson() |
private final List<Tag.TrackedEntry> entries
public static Tag.Builder create()
public Tag.Builder add(Tag.TrackedEntry trackedEntry)
public Tag.Builder add(Tag.Entry entry, String source)
public Tag.Builder add(Identifier id, String source)
public Tag.Builder addTag(Identifier id, String source)
public <T> Optional<Tag<T>> build(Function<Identifier,Tag<T>> tagGetter, Function<Identifier,T> objectGetter)
public Stream<Tag.TrackedEntry> streamEntries()
public <T> Stream<Tag.TrackedEntry> streamUnresolvedEntries(Function<Identifier,Tag<T>> tagGetter, Function<Identifier,T> objectGetter)
public Tag.Builder read(JsonObject json, String source)
private static Tag.Entry resolveEntry(JsonElement json)
public JsonObject toJson()