public interface FabricDataGeneratorTagBuilder<T>
net.minecraft.data.server.AbstractTagProvider.ObjectBuilder
instances when
Fabric API is present. Useful for data generators.Modifier and Type | Method and Description |
---|---|
void |
addOptionalObject(net.minecraft.util.Identifier id)
Add an optional entry of type
<T> to the tag. |
void |
addOptionalTag(net.minecraft.util.Identifier id)
Add an optional tag entry to the tag.
|
void addOptionalObject(net.minecraft.util.Identifier id)
<T>
to the tag.
The object identified by id
is not required to be present on load,
which is useful for integration with other mods.id
- The ID of the object to addfor the non-optional version of this method.
void addOptionalTag(net.minecraft.util.Identifier id)
id
is not required to be present on load,
which is useful for integration with other mods.id
- The ID of the tag to addfor the non-optional version of this method.