Interface IForgeRawTagBuilder

All Known Implementing Classes:
Tag.Builder

public interface IForgeRawTagBuilder
  • Method Details

    • getRawBuilder

      default Tag.Builder getRawBuilder()
    • serializeTagAdditions

      default void serializeTagAdditions(com.google.gson.JsonObject tagJson)
      internal, called when a raw builder is written to json to add forge additions (e.g. the remove list)
    • remove

      default Tag.Builder remove(Tag.Entry tagEntry, String source)
      Adds a tag entry to the remove list.
      Parameters:
      tagEntry - The tag entry to add to the remove list
      source - The source of the caller for logging purposes (generally a modid)
      Returns:
      The builder for chaining purposes
    • removeElement

      default Tag.Builder removeElement(ResourceLocation elementID, String source)
      Adds a single-element entry to the remove list.
      Parameters:
      elementID - The ID of the element to add to the remove list
      source - The source of the caller for logging purposes (generally a modid)
      Returns:
      The builder for chaining purposes
    • removeTag

      default Tag.Builder removeTag(ResourceLocation tagID, String source)
      Adds a tag to the remove list.
      Parameters:
      tagID - The ID of the tag to add to the remove list
      source - The source of the caller for logging purposes (generally a modid)
      Returns:
      The builder for chaining purposes