public static class EntityTypeTags.Wrapper extends Tag<EntityType<?>>
Tag.Builder<T>, Tag.ITagEntry<T>, Tag.ListEntry<T>, Tag.TagEntry<T>
Modifier and Type | Field and Description |
---|---|
private Tag<EntityType<?>> |
cachedTag |
private int |
lastKnownGeneration |
Constructor and Description |
---|
Wrapper(ResourceLocation p_i50383_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(EntityType<?> itemIn) |
java.util.Collection<EntityType<?>> |
getAllElements() |
java.util.Collection<Tag.ITagEntry<EntityType<?>>> |
getEntries() |
getId, getRandomElement, serialize
private int lastKnownGeneration
private Tag<EntityType<?>> cachedTag
public Wrapper(ResourceLocation p_i50383_1_)
public boolean contains(EntityType<?> itemIn)
contains
in class Tag<EntityType<?>>
public java.util.Collection<EntityType<?>> getAllElements()
getAllElements
in class Tag<EntityType<?>>
public java.util.Collection<Tag.ITagEntry<EntityType<?>>> getEntries()
getEntries
in class Tag<EntityType<?>>