接口 IForgeTagAppender<T>
- 所有已知子接口:
IForgeIntrinsicHolderTagAppender<T>
public interface IForgeTagAppender<T>
-
方法概要
修饰符和类型方法说明default TagsProvider.TagAppender<T>
addOptionalTag
(TagKey<T> value) default TagsProvider.TagAppender<T>
addOptionalTags
(TagKey<T>... values) static <T> TagsProvider.TagAppender<T>
addTags
(TagsProvider.TagAppender<T> builder, TagKey<T>... values) SafeVarargs version ofaddTags(TagKey...)
.default TagsProvider.TagAppender<T>
default TagsProvider.TagAppender<T>
remove
(ResourceKey<T> resourceKey) Adds a resource key to the tag json's remove list.default TagsProvider.TagAppender<T>
remove
(ResourceKey<T> firstResourceKey, ResourceKey<T>... resourceKeys) Adds multiple resource keys to the tag json's remove list.default TagsProvider.TagAppender<T>
remove
(ResourceLocation location) Adds a single element's ID to the tag json's remove list.default TagsProvider.TagAppender<T>
remove
(ResourceLocation first, ResourceLocation... locations) Adds multiple elements' IDs to the tag json's remove list.default TagsProvider.TagAppender<T>
Adds a tag to the tag json's remove list.default TagsProvider.TagAppender<T>
Adds multiple tags to the tag json's remove list.default TagsProvider.TagAppender<T>
replace()
default TagsProvider.TagAppender<T>
replace
(boolean value) private TagsProvider.TagAppender<T>
self()
-
方法详细资料
-
self
-
addTags
-
addOptionalTag
-
addOptionalTags
-
replace
-
replace
-
remove
Adds a single element's ID to the tag json's remove list. Callable during datageneration.- 参数:
location
- The ID of the element to remove- 返回:
- The builder for chaining
-
remove
Adds multiple elements' IDs to the tag json's remove list. Callable during datageneration.- 参数:
locations
- The IDs of the elements to remove- 返回:
- The builder 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
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.- 参数:
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
-
addTags
@SafeVarargs static <T> TagsProvider.TagAppender<T> addTags(TagsProvider.TagAppender<T> builder, TagKey<T>... values) SafeVarargs version ofaddTags(TagKey...)
.
-