接口 ITagAppenderExtension<E,T>
- 所有已知子接口:
TagAppender<E,
T>
public interface ITagAppenderExtension<E,T>
-
方法概要
修饰符和类型方法说明Add the givenentry
to 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()
-
方法详细资料
-
self
-
addTags
- 另请参阅:
-
addOptionalTags
- 另请参阅:
-
add
Add the givenentry
to the tag.- 参数:
entry
- the entry to add- 返回:
- The appender for chaining
-
replace
Marks this tag as replacing previous entries.- 返回:
- The appender for chaining
-
replace
Set whether this tag replaces previous entries.- 参数:
value
- whether the tag replaces previous entries- 返回:
- The appender for chaining
-
remove
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
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
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
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
-