mirror of https://github.com/FabricMC/yarn.git
79 lines
3.4 KiB
Plaintext
79 lines
3.4 KiB
Plaintext
CLASS net/minecraft/class_3494 net/minecraft/tag/Tag
|
|
COMMENT A tag is a set of objects.
|
|
COMMENT
|
|
COMMENT <p>Tags simplifies reference to multiple objects, especially for
|
|
COMMENT predicate (testing against) purposes.
|
|
COMMENT
|
|
COMMENT <p>A tag is immutable by design. It has a builder, which is a mutable
|
|
COMMENT equivalent.
|
|
COMMENT
|
|
COMMENT <p>Its entries' iteration may be ordered
|
|
COMMENT or unordered, depending on the configuration from the tag builder.
|
|
FIELD field_15578 entries Ljava/util/Collection;
|
|
FIELD field_15579 values Ljava/util/Set;
|
|
FIELD field_15580 id Lnet/minecraft/class_2960;
|
|
METHOD <init> (Lnet/minecraft/class_2960;)V
|
|
ARG 1 id
|
|
METHOD <init> (Lnet/minecraft/class_2960;Ljava/util/Collection;Z)V
|
|
ARG 1 id
|
|
ARG 2 entries
|
|
ARG 3 ordered
|
|
METHOD method_15138 values ()Ljava/util/Collection;
|
|
METHOD method_15139 entries ()Ljava/util/Collection;
|
|
METHOD method_15140 toJson (Ljava/util/function/Function;)Lcom/google/gson/JsonObject;
|
|
ARG 1 idGetter
|
|
METHOD method_15141 contains (Ljava/lang/Object;)Z
|
|
ARG 1 entry
|
|
METHOD method_15142 getRandom (Ljava/util/Random;)Ljava/lang/Object;
|
|
ARG 1 random
|
|
METHOD method_15143 getId ()Lnet/minecraft/class_2960;
|
|
CLASS class_3495 Builder
|
|
COMMENT A builder class to ease the creation of tags. It can also be used as a
|
|
COMMENT mutable form of a tag.
|
|
FIELD field_15581 ordered Z
|
|
FIELD field_15582 entries Ljava/util/Set;
|
|
METHOD method_15144 build (Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;
|
|
ARG 1 id
|
|
METHOD method_15146 create ()Lnet/minecraft/class_3494$class_3495;
|
|
METHOD method_15147 fromJson (Ljava/util/function/Function;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 entryGetter
|
|
ARG 2 json
|
|
METHOD method_15148 add (Lnet/minecraft/class_3494;)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 tag
|
|
METHOD method_15149 add (Lnet/minecraft/class_3494$class_3496;)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 entry
|
|
METHOD method_15150 add ([Ljava/lang/Object;)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 entries
|
|
METHOD method_15152 applyTagGetter (Ljava/util/function/Function;)Z
|
|
ARG 1 tagGetter
|
|
METHOD method_15153 add (Ljava/lang/Object;)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 entry
|
|
METHOD method_15154 ordered (Z)Lnet/minecraft/class_3494$class_3495;
|
|
ARG 1 ordered
|
|
CLASS class_3496 Entry
|
|
METHOD method_15155 toJson (Lcom/google/gson/JsonArray;Ljava/util/function/Function;)V
|
|
ARG 1 targetArray
|
|
ARG 2 idGetter
|
|
METHOD method_15156 applyTagGetter (Ljava/util/function/Function;)Z
|
|
COMMENT Resolves the tag entry, given the availalbe tags.
|
|
COMMENT
|
|
COMMENT @return true if the tag entry has been resolved
|
|
ARG 1 tagGetter
|
|
COMMENT the getter for resolved tags, consuming tag identifiers
|
|
METHOD method_15157 build (Ljava/util/Collection;)V
|
|
COMMENT Build this tag entry by adding elements to the backing collection of
|
|
COMMENT a tag.
|
|
ARG 1 targetCollection
|
|
COMMENT the collection to which the tag entries should be added
|
|
CLASS class_3497 TagEntry
|
|
FIELD field_15583 tag Lnet/minecraft/class_3494;
|
|
FIELD field_15584 id Lnet/minecraft/class_2960;
|
|
METHOD <init> (Lnet/minecraft/class_2960;)V
|
|
ARG 1 id
|
|
METHOD <init> (Lnet/minecraft/class_3494;)V
|
|
ARG 1 tag
|
|
METHOD method_15158 getId ()Lnet/minecraft/class_2960;
|
|
CLASS class_3498 CollectionEntry
|
|
FIELD field_15585 values Ljava/util/Collection;
|
|
METHOD method_15159 getValues ()Ljava/util/Collection;
|