addOptionalTag

void addOptionalTag(Identifier id)

Add an optional tag entry to the tag.The tag identified by {@code id} is not required to be present on load,which is useful for integration with other mods.

See also

net.minecraft.data.server.AbstractTagProvider.ObjectBuilder

net.minecraft.data.server.AbstractTagProvider.ObjectBuilder#addTag(Tag.Identified)for the non-optional version of this method.

Parameters

id

The ID of the tag to add

Sources

jvm source
Link copied to clipboard