Class EntityTypePredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityTypePredicate
-
- Direct Known Subclasses:
EntityTypePredicate.TagPredicate
,EntityTypePredicate.TypePredicate
public abstract class EntityTypePredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EntityTypePredicate.TagPredicate
(package private) static class
EntityTypePredicate.TypePredicate
-
Field Summary
Fields Modifier and Type Field Description static EntityTypePredicate
ANY
private static com.google.common.base.Joiner
COMMA_JOINER
-
Constructor Summary
Constructors Constructor Description EntityTypePredicate()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static EntityTypePredicate
fromJson(com.google.gson.JsonElement p_209370_0_)
abstract boolean
matches(EntityType<?> p_209368_1_)
static EntityTypePredicate
of(EntityType<?> p_217999_0_)
static EntityTypePredicate
of(ITag<EntityType<?>> p_217998_0_)
abstract com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final EntityTypePredicate ANY
-
COMMA_JOINER
private static final com.google.common.base.Joiner COMMA_JOINER
-
-
Method Detail
-
matches
public abstract boolean matches(EntityType<?> p_209368_1_)
-
serializeToJson
public abstract com.google.gson.JsonElement serializeToJson()
-
fromJson
public static EntityTypePredicate fromJson(@Nullable com.google.gson.JsonElement p_209370_0_)
-
of
public static EntityTypePredicate of(EntityType<?> p_217999_0_)
-
of
public static EntityTypePredicate of(ITag<EntityType<?>> p_217998_0_)
-
-