Class EntityEquipmentPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityEquipmentPredicate
-
public class EntityEquipmentPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityEquipmentPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static EntityEquipmentPredicate
ANY
static EntityEquipmentPredicate
CAPTAIN
private ItemPredicate
chest
private ItemPredicate
feet
private ItemPredicate
head
private ItemPredicate
legs
private ItemPredicate
mainhand
private ItemPredicate
offhand
-
Constructor Summary
Constructors Constructor Description EntityEquipmentPredicate(ItemPredicate p_i50809_1_, ItemPredicate p_i50809_2_, ItemPredicate p_i50809_3_, ItemPredicate p_i50809_4_, ItemPredicate p_i50809_5_, ItemPredicate p_i50809_6_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityEquipmentPredicate
fromJson(com.google.gson.JsonElement p_217956_0_)
boolean
matches(Entity p_217955_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final EntityEquipmentPredicate ANY
-
CAPTAIN
public static final EntityEquipmentPredicate CAPTAIN
-
head
private final ItemPredicate head
-
chest
private final ItemPredicate chest
-
legs
private final ItemPredicate legs
-
feet
private final ItemPredicate feet
-
mainhand
private final ItemPredicate mainhand
-
offhand
private final ItemPredicate offhand
-
-
Constructor Detail
-
EntityEquipmentPredicate
public EntityEquipmentPredicate(ItemPredicate p_i50809_1_, ItemPredicate p_i50809_2_, ItemPredicate p_i50809_3_, ItemPredicate p_i50809_4_, ItemPredicate p_i50809_5_, ItemPredicate p_i50809_6_)
-
-
Method Detail
-
matches
public boolean matches(@Nullable Entity p_217955_1_)
-
fromJson
public static EntityEquipmentPredicate fromJson(@Nullable com.google.gson.JsonElement p_217956_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-