public static class BredAnimalsTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
child |
private EntityPredicate |
parent |
private EntityPredicate |
partner |
Constructor and Description |
---|
Instance(EntityPredicate parent,
EntityPredicate partner,
EntityPredicate child) |
Modifier and Type | Method and Description |
---|---|
static BredAnimalsTrigger.Instance |
any() |
static BredAnimalsTrigger.Instance |
forParent(EntityPredicate.Builder p_203909_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
AnimalEntity parent1In,
AnimalEntity parent2In,
AgeableEntity childIn) |
getId, toString
private final EntityPredicate parent
private final EntityPredicate partner
private final EntityPredicate child
public Instance(EntityPredicate parent, EntityPredicate partner, EntityPredicate child)
public static BredAnimalsTrigger.Instance any()
public static BredAnimalsTrigger.Instance forParent(EntityPredicate.Builder p_203909_0_)
public boolean test(ServerPlayerEntity player, AnimalEntity parent1In, @Nullable AnimalEntity parent2In, @Nullable AgeableEntity childIn)
public com.google.gson.JsonElement serialize()