Package net.minecraft.tags
Interface ITagCollection<T>
public interface ITagCollection<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ITagCollection<T>
empty()
default Collection<ResourceLocation>
default ResourceLocation
getIdOrThrow
(ITag<T> p_232975_1_) default Collection<ResourceLocation>
getMatchingTags
(T p_199913_1_) getTag
(ResourceLocation p_199910_1_) getTagOrEmpty
(ResourceLocation p_241834_1_) static <T> ITagCollection<T>
loadFromNetwork
(PacketBuffer p_242204_0_, Registry<T> p_242204_1_) static <T> ITagCollection<T>
of
(Map<ResourceLocation, ITag<T>> p_242202_0_) default void
serializeToNetwork
(PacketBuffer p_242203_1_, DefaultedRegistry<T> p_242203_2_)
-
Method Details
-
getAllTags
Map<ResourceLocation,ITag<T>> getAllTags() -
getTag
-
getTagOrEmpty
-
getId
-
getIdOrThrow
-
getAvailableTags
-
getMatchingTags
-
serializeToNetwork
-
loadFromNetwork
-
empty
-
of
-