Package net.minecraft.tags
Interface TagCollection<T>
public interface TagCollection<T>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TagCollection<T>
createFromNetwork(TagCollection.NetworkPayload p_144409_, Registry<? extends T> p_144410_)
static <T> TagCollection<T>
empty()
Map<ResourceLocation,Tag<T>>
default Collection<ResourceLocation>
default ResourceLocation
default Collection<ResourceLocation>
getMatchingTags(T p_13395_)
getTag(ResourceLocation p_13405_)
getTagOrEmpty(ResourceLocation p_13409_)
default boolean
hasTag(ResourceLocation p_144424_)
static <T> TagCollection<T>
of(Map<ResourceLocation,Tag<T>> p_13397_)
default TagCollection.NetworkPayload
serializeToNetwork(Registry<T> p_144412_)
-
Method Details
-
getAllTags
Map<ResourceLocation,Tag<T>> getAllTags() -
getTag
-
getTagOrEmpty
-
getId
-
getId
-
hasTag
-
getAvailableTags
-
getMatchingTags
-
serializeToNetwork
-
createFromNetwork
static <T> TagCollection<T> createFromNetwork(TagCollection.NetworkPayload p_144409_, Registry<? extends T> p_144410_) -
empty
-
of
-