Interface FabricDataGeneratorTagBuilder<T>


public interface FabricDataGeneratorTagBuilder<T>
Interface implemented by AbstractTagProvider.ObjectBuilder instances when Fabric API is present. Useful for data generators.
  • Method Summary

    Modifier and Type
    Method
    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.
  • Method Details

    • addOptionalObject

      void addOptionalObject(net.minecraft.util.Identifier id)
      Add an optional entry of type <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.
      Parameters:
      id - The ID of the object to add
      See Also:
      for the non-optional version of this method.
    • addOptionalTag

      void addOptionalTag(net.minecraft.util.Identifier id)
      Add an optional tag entry to the tag. The tag identified by id is not required to be present on load, which is useful for integration with other mods.
      Parameters:
      id - The ID of the tag to add
      See Also:
      for the non-optional version of this method.