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