- All Implemented Interfaces:
Tag<T>
public class SetTag<T>
extends Object
implements Tag<T>
-
-
-
Constructor Summary
Constructors
| Modifier |
Constructor |
Description |
protected |
SetTag(Set<T> values,
Class<?> type) |
|
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.tag.Tag
getRandom
-
Field Details
-
-
valueSet
private final Set<T> valueSet
-
type
protected final Class<?> type
-
Constructor Details
-
SetTag
protected SetTag(
Set<T> values,
Class<?> type)
-
Method Details
-
empty
public static <T> SetTag<T> empty()
-
of
public static <T> SetTag<T> of(
Set<T> values)
-
contains
public boolean contains(
T entry)
- Specified by:
contains in interface Tag<T>
-
-
getCommonType
private static <T> Class<?> getCommonType(
Set<T> values)
-