Class TagBuilder

java.lang.Object
net.minecraft.registry.tag.TagBuilder

public class TagBuilder extends Object
A builder class to ease the creation of tags. It can also be used as a mutable form of a tag.
Mappings:
Namespace Name
named net/minecraft/registry/tag/TagBuilder
intermediary net/minecraft/class_3495
official awq
  • Field Details

    • entries

      private final List<TagEntry> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/registry/tag/TagBuilder;entries:Ljava/util/List;
      intermediary field_23688 Lnet/minecraft/class_3495;field_23688:Ljava/util/List;
      official a Lawq;a:Ljava/util/List;
  • Constructor Details

    • TagBuilder

      public TagBuilder()
  • Method Details

    • create

      public static TagBuilder create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/registry/tag/TagBuilder;create()Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_26778 Lnet/minecraft/class_3495;method_26778()Lnet/minecraft/class_3495;
      official a Lawq;a()Lawq;
    • build

      public List<TagEntry> build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/registry/tag/TagBuilder;build()Ljava/util/List;
      intermediary method_26782 Lnet/minecraft/class_3495;method_26782()Ljava/util/List;
      official b Lawq;b()Ljava/util/List;
    • add

      public TagBuilder add(TagEntry entry)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/registry/tag/TagBuilder;add(Lnet/minecraft/registry/tag/TagEntry;)Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_27064 Lnet/minecraft/class_3495;method_27064(Lnet/minecraft/class_3497;)Lnet/minecraft/class_3495;
      official a Lawq;a(Lawr;)Lawq;
    • add

      public TagBuilder add(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/registry/tag/TagBuilder;add(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_26784 Lnet/minecraft/class_3495;method_26784(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3495;
      official a Lawq;a(Lakq;)Lawq;
    • addOptional

      public TagBuilder addOptional(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named addOptional Lnet/minecraft/registry/tag/TagBuilder;addOptional(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_34891 Lnet/minecraft/class_3495;method_34891(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3495;
      official b Lawq;b(Lakq;)Lawq;
    • addTag

      public TagBuilder addTag(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named addTag Lnet/minecraft/registry/tag/TagBuilder;addTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_26787 Lnet/minecraft/class_3495;method_26787(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3495;
      official c Lawq;c(Lakq;)Lawq;
    • addOptionalTag

      public TagBuilder addOptionalTag(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named addOptionalTag Lnet/minecraft/registry/tag/TagBuilder;addOptionalTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagBuilder;
      intermediary method_34892 Lnet/minecraft/class_3495;method_34892(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3495;
      official d Lawq;d(Lakq;)Lawq;