add Optional Object
Add an optional entry of type {@code }
to the tag.The object 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#add(T)for the non-optional version of this method.
Parameters
id
The ID of the object to add
Sources
jvm source
Link copied to clipboard