Interface ITagAppenderExtension<E,T>
- All Known Subinterfaces:
TagAppender<E,T>
- All Known Implementing Classes:
VanillaItemTagsProvider.BlockToItemConverter
public interface ITagAppenderExtension<E,T>
-
Method Summary
Modifier and TypeMethodDescriptionAdd the givenentryto the tag.default TagAppender<E, T> addOptionalTags(TagKey<T>... values) default TagAppender<E, T> Adds a resource key to the tag json's remove list.default TagAppender<E, T> Adds multiple resource keys to the tag json's remove list.Adds a tag to the tag json's remove list.default TagAppender<E, T> Adds multiple tags to the tag json's remove list.default TagAppender<E, T> replace()Marks this tag as replacing previous entries.replace(boolean value) Set whether this tag replaces previous entries.private TagAppender<E, T> self()
-
Method Details
-
self
-
addTags
- See Also:
-
addOptionalTags
- See Also:
-
add
Add the givenentryto the tag.- Parameters:
entry- the entry to add- Returns:
- The appender for chaining
-
replace
Marks this tag as replacing previous entries.- Returns:
- The appender for chaining
-
replace
Set whether this tag replaces previous entries.- Parameters:
value- whether the tag replaces previous entries- Returns:
- The appender for chaining
-
remove
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
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
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
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
-