Class TagBuilder

java.lang.Object
net.minecraft.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
official akw
intermediary net/minecraft/class_3495
named net/minecraft/tag/TagBuilder
  • Field Details

    • entries

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

    • TagBuilder

      public TagBuilder()
  • Method Details

    • create

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

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

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

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

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

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

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