Interface IForgeTagAppender<T>

All Known Subinterfaces:
IForgeIntrinsicHolderTagAppender<T>
All Known Implementing Classes:
IntrinsicHolderTagsProvider.IntrinsicTagAppender, TagsProvider.TagAppender

public interface IForgeTagAppender<T>
  • Method Details

    • self

      private TagsProvider.TagAppender<T> self()
    • addTags

      default TagsProvider.TagAppender<T> addTags(TagKey<T>... values)
    • replace

      default TagsProvider.TagAppender<T> replace()
    • replace

      default TagsProvider.TagAppender<T> replace(boolean value)
    • remove

      default TagsProvider.TagAppender<T> remove(ResourceLocation location)
      Adds a single element's ID to the tag json's remove list. Callable during datageneration.
      Parameters:
      location - The ID of the element to remove
      Returns:
      The builder for chaining
    • remove

      default TagsProvider.TagAppender<T> remove(ResourceLocation first, ResourceLocation... locations)
      Adds multiple elements' IDs to the tag json's remove list. Callable during datageneration.
      Parameters:
      locations - The IDs of the elements to remove
      Returns:
      The builder for chaining
    • remove

      default TagsProvider.TagAppender<T> remove(ResourceKey<T> resourceKey)
      Adds a resource key to the tag json's remove list. Callable during datageneration.
      Parameters:
      resourceKey - The resource key of the element to remove
      Returns:
      The appender for chaining
    • remove

      default TagsProvider.TagAppender<T> remove(ResourceKey<T> firstResourceKey, ResourceKey<T>... resourceKeys)
      Adds multiple resource keys to the tag json's remove list. Callable during datageneration.
      Parameters:
      resourceKeys - The resource keys of the elements to remove
      Returns:
      The appender for chaining
    • remove

      default TagsProvider.TagAppender<T> remove(TagKey<T> tag)
      Adds a tag to the tag json's remove list. Callable during datageneration.
      Parameters:
      tag - The ID of the tag to remove
      Returns:
      The builder for chaining
    • remove

      default TagsProvider.TagAppender<T> remove(TagKey<T> first, TagKey<T>... tags)
      Adds multiple tags to the tag json's remove list. Callable during datageneration.
      Parameters:
      tags - The IDs of the tags to remove
      Returns:
      The builder for chaining