Class TagBuilder

java.lang.Object
net.minecraft.tags.TagBuilder
All Implemented Interfaces:
ITagBuilderExtension

public class TagBuilder extends Object implements ITagBuilderExtension
  • Field Details

    • entries

      private final List<TagEntry> entries
    • replace

      private boolean replace
    • removeEntries

      private final List<TagEntry> removeEntries
      Neo: Entries to be removed from this tag
  • Constructor Details

    • TagBuilder

      public TagBuilder()
  • Method Details

    • create

      public static TagBuilder create()
    • build

      public List<TagEntry> build()
    • shouldReplace

      public boolean shouldReplace()
    • setReplace

      public TagBuilder setReplace(boolean replace)
    • add

      public TagBuilder add(TagEntry entry)
    • addElement

      public TagBuilder addElement(Identifier id)
    • addOptionalElement

      public TagBuilder addOptionalElement(Identifier id)
    • addTag

      public TagBuilder addTag(Identifier id)
    • addOptionalTag

      public TagBuilder addOptionalTag(Identifier id)
    • remove

      public TagBuilder remove(TagEntry entry)
      Neo: Add an entry to be removed from this tag in datagen.
      Parameters:
      entry - The entry to be removed
    • replace

      public TagBuilder replace()
      Neo: Shorthand for setReplace(true).
    • getRemoveEntries

      public Stream<TagEntry> getRemoveEntries()
      Neo: Returns the entries to be removed from this tag.
      Returns:
      the entries to be removed from this tag