Class TagEntry

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

public class TagEntry extends Object
Mappings:
Namespace Name
official aqf
intermediary net/minecraft/class_3497
named net/minecraft/registry/tag/TagEntry
  • Field Details

    • ENTRY_CODEC

      private static final com.mojang.serialization.Codec<TagEntry> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Laqf;b:Lcom/mojang/serialization/Codec;
      intermediary field_39266 Lnet/minecraft/class_3497;field_39266:Lcom/mojang/serialization/Codec;
      named ENTRY_CODEC Lnet/minecraft/registry/tag/TagEntry;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<TagEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a:Lcom/mojang/serialization/Codec;
      intermediary field_39265 Lnet/minecraft/class_3497;field_39265:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/registry/tag/TagEntry;CODEC:Lcom/mojang/serialization/Codec;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official c Laqf;c:Laew;
      intermediary field_15584 Lnet/minecraft/class_3497;field_15584:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/registry/tag/TagEntry;id:Lnet/minecraft/util/Identifier;
    • tag

      private final boolean tag
      Mappings:
      Namespace Name Mixin selector
      official d Laqf;d:Z
      intermediary field_39267 Lnet/minecraft/class_3497;field_39267:Z
      named tag Lnet/minecraft/registry/tag/TagEntry;tag:Z
    • required

      private final boolean required
      Mappings:
      Namespace Name Mixin selector
      official e Laqf;e:Z
      intermediary field_39268 Lnet/minecraft/class_3497;field_39268:Z
      named required Lnet/minecraft/registry/tag/TagEntry;required:Z
  • Constructor Details

    • TagEntry

      private TagEntry(Identifier id, boolean tag, boolean required)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqf;<init>(Laew;ZZ)V
      intermediary <init> Lnet/minecraft/class_3497;<init>(Lnet/minecraft/class_2960;ZZ)V
      named <init> Lnet/minecraft/registry/tag/TagEntry;<init>(Lnet/minecraft/util/Identifier;ZZ)V
    • TagEntry

      private TagEntry(Codecs.TagEntryId id, boolean required)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqf;<init>(Larf$f;Z)V
      intermediary <init> Lnet/minecraft/class_3497;<init>(Lnet/minecraft/class_5699$class_7476;Z)V
      named <init> Lnet/minecraft/registry/tag/TagEntry;<init>(Lnet/minecraft/util/dynamic/Codecs$TagEntryId;Z)V
  • Method Details

    • getIdForCodec

      private Codecs.TagEntryId getIdForCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a()Larf$f;
      intermediary method_43936 Lnet/minecraft/class_3497;method_43936()Lnet/minecraft/class_5699$class_7476;
      named getIdForCodec Lnet/minecraft/registry/tag/TagEntry;getIdForCodec()Lnet/minecraft/util/dynamic/Codecs$TagEntryId;
    • create

      public static TagEntry create(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a(Laew;)Laqf;
      intermediary method_43937 Lnet/minecraft/class_3497;method_43937(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3497;
      named create Lnet/minecraft/registry/tag/TagEntry;create(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagEntry;
    • createOptional

      public static TagEntry createOptional(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official b Laqf;b(Laew;)Laqf;
      intermediary method_43942 Lnet/minecraft/class_3497;method_43942(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3497;
      named createOptional Lnet/minecraft/registry/tag/TagEntry;createOptional(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagEntry;
    • createTag

      public static TagEntry createTag(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official c Laqf;c(Laew;)Laqf;
      intermediary method_43945 Lnet/minecraft/class_3497;method_43945(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3497;
      named createTag Lnet/minecraft/registry/tag/TagEntry;createTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagEntry;
    • createOptionalTag

      public static TagEntry createOptionalTag(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official d Laqf;d(Laew;)Laqf;
      intermediary method_43947 Lnet/minecraft/class_3497;method_43947(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3497;
      named createOptionalTag Lnet/minecraft/registry/tag/TagEntry;createOptionalTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/registry/tag/TagEntry;
    • resolve

      public <T> boolean resolve(TagEntry.ValueGetter<T> valueGetter, Consumer<T> idConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a(Laqf$a;Ljava/util/function/Consumer;)Z
      intermediary method_26790 Lnet/minecraft/class_3497;method_26790(Lnet/minecraft/class_3497$class_7474;Ljava/util/function/Consumer;)Z
      named resolve Lnet/minecraft/registry/tag/TagEntry;resolve(Lnet/minecraft/registry/tag/TagEntry$ValueGetter;Ljava/util/function/Consumer;)Z
    • forEachRequiredTagId

      public void forEachRequiredTagId(Consumer<Identifier> idConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a(Ljava/util/function/Consumer;)V
      intermediary method_32831 Lnet/minecraft/class_3497;method_32831(Ljava/util/function/Consumer;)V
      named forEachRequiredTagId Lnet/minecraft/registry/tag/TagEntry;forEachRequiredTagId(Ljava/util/function/Consumer;)V
    • forEachOptionalTagId

      public void forEachOptionalTagId(Consumer<Identifier> idConsumer)
      Mappings:
      Namespace Name Mixin selector
      official b Laqf;b(Ljava/util/function/Consumer;)V
      intermediary method_43944 Lnet/minecraft/class_3497;method_43944(Ljava/util/function/Consumer;)V
      named forEachOptionalTagId Lnet/minecraft/registry/tag/TagEntry;forEachOptionalTagId(Ljava/util/function/Consumer;)V
    • canAdd

      public boolean canAdd(Predicate<Identifier> directEntryPredicate, Predicate<Identifier> tagEntryPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Laqf;a(Ljava/util/function/Predicate;Ljava/util/function/Predicate;)Z
      intermediary method_32832 Lnet/minecraft/class_3497;method_32832(Ljava/util/function/Predicate;Ljava/util/function/Predicate;)Z
      named canAdd Lnet/minecraft/registry/tag/TagEntry;canAdd(Ljava/util/function/Predicate;Ljava/util/function/Predicate;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object