public class EntityEquipmentPredicate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityEquipmentPredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static EntityEquipmentPredicate |
ANY |
private ItemPredicate |
chest |
private ItemPredicate |
feet |
private ItemPredicate |
head |
private ItemPredicate |
legs |
private ItemPredicate |
mainhand |
private ItemPredicate |
offhand |
static EntityEquipmentPredicate |
OMINOUS_BANNER_ON_HEAD |
Constructor and Description |
---|
EntityEquipmentPredicate(ItemPredicate head,
ItemPredicate chest,
ItemPredicate legs,
ItemPredicate feet,
ItemPredicate mainhand,
ItemPredicate offhand) |
Modifier and Type | Method and Description |
---|---|
static EntityEquipmentPredicate |
fromJson(JsonElement json) |
boolean |
test(Entity entity) |
JsonElement |
toJson() |
public static final EntityEquipmentPredicate ANY
public static final EntityEquipmentPredicate OMINOUS_BANNER_ON_HEAD
private final ItemPredicate head
private final ItemPredicate chest
private final ItemPredicate legs
private final ItemPredicate feet
private final ItemPredicate mainhand
private final ItemPredicate offhand
public EntityEquipmentPredicate(ItemPredicate head, ItemPredicate chest, ItemPredicate legs, ItemPredicate feet, ItemPredicate mainhand, ItemPredicate offhand)
public static EntityEquipmentPredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()