public static class TameAnimalTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
entity |
Constructor and Description |
---|
Instance(EntityPredicate entity) |
Modifier and Type | Method and Description |
---|---|
static TameAnimalTrigger.Instance |
any() |
static TameAnimalTrigger.Instance |
create(EntityPredicate p_215124_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
AnimalEntity entity) |
getId, toString
private final EntityPredicate entity
public Instance(EntityPredicate entity)
public static TameAnimalTrigger.Instance any()
public static TameAnimalTrigger.Instance create(EntityPredicate p_215124_0_)
public boolean test(ServerPlayerEntity player, AnimalEntity entity)
public com.google.gson.JsonElement serialize()