TagDelegate

public final class TagDelegate<T> implements Tag.Identified<T>, FabricTag<T>, FabricTagHooks

Constructors

TagDelegate
Link copied to clipboard
void TagDelegate(Identifier id, Supplier<TagGroup<T>> containerSupplier)

Functions

codec
Link copied to clipboard
static Codec<Tag<T>> codec<T>(Supplier<TagGroup<T>> groupGetter)
contains
Link copied to clipboard
boolean contains(T var1)
abstract boolean contains(T entry)
fabric_setExtraData
Link copied to clipboard
void fabric_setExtraData(int clearCount)
getId
Link copied to clipboard
Identifier getId()
abstract Identifier getId()
getRandom
Link copied to clipboard
T getRandom(Random random)
hasBeenReplaced
Link copied to clipboard
boolean hasBeenReplaced()
True if the given tag has been "replaced" by a datapack at least once.
of
Link copied to clipboard
static Tag<Tof<T>(Set<T> values)
values
Link copied to clipboard
List<Tvalues()
abstract List<Tvalues()

Properties

id
Link copied to clipboard
private final Identifier id

Sources

jvm source
Link copied to clipboard