Class CustomTagProviders.CustomFabricTagBuilder<T2>
java.lang.Object
net.minecraft.data.tags.TagsProvider.TagAppender<T2>
io.github.vampirestudios.vampirelib.api.datagen.CustomTagProviders.CustomFabricTagBuilder<T2>
- Enclosing class:
- CustomTagProviders<T>
public static final class CustomTagProviders.CustomFabricTagBuilder<T2>
extends net.minecraft.data.tags.TagsProvider.TagAppender<T2>
-
Field Summary
Fields inherited from class net.minecraft.data.tags.TagsProvider.TagAppender
builder, registry -
Constructor Summary
ConstructorsConstructorDescriptionCustomFabricTagBuilder(net.minecraft.data.tags.TagsProvider.TagAppender<T2> parent) -
Method Summary
Modifier and TypeMethodDescriptionAdd a single element to the tag.add(net.minecraft.resources.ResourceLocation id) Add a single element to the tag.add(net.minecraft.resources.ResourceLocation... ids) Add multiple elements to this tag.Add a single element to the tag.Add multiple elements to this tag.addOptional(@NotNull net.minecraft.resources.ResourceLocation id) Add an optionalResourceLocationto the tag.addOptionalTag(net.minecraft.resources.ResourceLocation id) Add another optional tag to this tag.Add another tag to this tag.Add another tag to this tag.forceAddTag(net.minecraft.tags.TagKey<T2> tag) Add another tag to this tag, ignoring any warning.setReplace(boolean replace) Set the value of the `replace` flag in a Tag.Methods inherited from class net.minecraft.data.tags.TagsProvider.TagAppender
add
-
Constructor Details
-
CustomFabricTagBuilder
-
-
Method Details
-
setReplace
Set the value of the `replace` flag in a Tag.When set to true the tag will replace any existing tag entries.
- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
add
Add a single element to the tag.- Overrides:
addin classnet.minecraft.data.tags.TagsProvider.TagAppender<T2>- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
add
public CustomTagProviders.CustomFabricTagBuilder<T2> add(net.minecraft.resources.ResourceLocation id) Add a single element to the tag.- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
add
public CustomTagProviders.CustomFabricTagBuilder<T2> add(net.minecraft.resources.ResourceKey<? extends T2> registryKey) Add a single element to the tag.- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
addOptional
public CustomTagProviders.CustomFabricTagBuilder<T2> addOptional(@NotNull @NotNull net.minecraft.resources.ResourceLocation id) Add an optionalResourceLocationto the tag.- Overrides:
addOptionalin classnet.minecraft.data.tags.TagsProvider.TagAppender<T2>- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
addTag
public CustomTagProviders.CustomFabricTagBuilder<T2> addTag(@NotNull @NotNull net.minecraft.tags.TagKey<T2> tag) Add another tag to this tag.- Overrides:
addTagin classnet.minecraft.data.tags.TagsProvider.TagAppender<T2>- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
addOptionalTag
public CustomTagProviders.CustomFabricTagBuilder<T2> addOptionalTag(net.minecraft.resources.ResourceLocation id) Add another optional tag to this tag.- Overrides:
addOptionalTagin classnet.minecraft.data.tags.TagsProvider.TagAppender<T2>- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
forceAddTag
Add another tag to this tag, ignoring any warning.Note: only use this method if you sure that the tag will be always available at runtime. If not, use
addOptionalTag(ResourceLocation)instead.- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
add
Add multiple elements to this tag.- Overrides:
addin classnet.minecraft.data.tags.TagsProvider.TagAppender<T2>- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
add
public CustomTagProviders.CustomFabricTagBuilder<T2> add(net.minecraft.resources.ResourceLocation... ids) Add multiple elements to this tag.- Returns:
- the
CustomTagProviders.CustomFabricTagBuilderinstance
-
addTags
@SafeVarargs public final CustomTagProviders.CustomFabricTagBuilder<T2> addTags(net.minecraft.tags.TagKey<T2>... values) Add another tag to this tag.- Returns:
- the
FabricTagProvider.FabricTagBuilderinstance
-