public class TameAnimalTrigger extends AbstractCriterionTrigger<TameAnimalTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
TameAnimalTrigger.Instance |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
ID |
Constructor and Description |
---|
TameAnimalTrigger() |
Modifier and Type | Method and Description |
---|---|
TameAnimalTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getId() |
void |
trigger(ServerPlayerEntity player,
AnimalEntity entity) |
addListener, func_227070_a_, func_227071_b_, removeAllListeners, removeListener
private static final ResourceLocation ID
public ResourceLocation getId()
public TameAnimalTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
public void trigger(ServerPlayerEntity player, AnimalEntity entity)