接口 ITagAppenderExtension<E,T>

所有已知子接口:
TagAppender<E,T>
所有已知实现类:
VanillaItemTagsProvider.BlockToItemConverter

public interface ITagAppenderExtension<E,T>
  • 方法详细资料

    • self

      private TagAppender<E,T> self()
    • addTags

      default TagAppender<E,T> addTags(TagKey<T>... values)
      另请参阅:
    • addOptionalTags

      default TagAppender<E,T> addOptionalTags(TagKey<T>... values)
      另请参阅:
    • add

      TagAppender<E,T> add(TagEntry entry)
      Add the given entry to the tag.
      参数:
      entry - the entry to add
      返回:
      The appender for chaining
    • replace

      default TagAppender<E,T> replace()
      Marks this tag as replacing previous entries.
      返回:
      The appender for chaining
    • replace

      TagAppender<E,T> replace(boolean value)
      Set whether this tag replaces previous entries.
      参数:
      value - whether the tag replaces previous entries
      返回:
      The appender for chaining
    • remove

      TagAppender<E,T> remove(E e)
      Adds a resource key to the tag json's remove list. Callable during datageneration.
      参数:
      resourceKey - The resource key of the element to remove
      返回:
      The appender for chaining
    • remove

      default TagAppender<E,T> remove(E firstE, E... es)
      Adds multiple resource keys to the tag json's remove list. Callable during datageneration.
      参数:
      resourceKeys - The resource keys of the elements to remove
      返回:
      The appender for chaining
    • remove

      TagAppender<E,T> remove(TagKey<T> tag)
      Adds a tag to the tag json's remove list. Callable during datageneration.
      参数:
      tag - The ID of the tag to remove
      返回:
      The builder for chaining
    • remove

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