public class ChangeDimensionTrigger extends java.lang.Object implements ICriterionTrigger<ChangeDimensionTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
ChangeDimensionTrigger.Instance |
(package private) static class |
ChangeDimensionTrigger.Listeners |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
ID |
private java.util.Map<PlayerAdvancements,ChangeDimensionTrigger.Listeners> |
listeners |
Constructor and Description |
---|
ChangeDimensionTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<ChangeDimensionTrigger.Instance> listener) |
ChangeDimensionTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getId() |
void |
removeAllListeners(PlayerAdvancements playerAdvancementsIn) |
void |
removeListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<ChangeDimensionTrigger.Instance> listener) |
void |
trigger(EntityPlayerMP player,
DimensionType from,
DimensionType to) |
private static final ResourceLocation ID
private final java.util.Map<PlayerAdvancements,ChangeDimensionTrigger.Listeners> listeners
public ResourceLocation getId()
getId
in interface ICriterionTrigger<ChangeDimensionTrigger.Instance>
public void addListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<ChangeDimensionTrigger.Instance> listener)
addListener
in interface ICriterionTrigger<ChangeDimensionTrigger.Instance>
public void removeListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<ChangeDimensionTrigger.Instance> listener)
removeListener
in interface ICriterionTrigger<ChangeDimensionTrigger.Instance>
public void removeAllListeners(PlayerAdvancements playerAdvancementsIn)
removeAllListeners
in interface ICriterionTrigger<ChangeDimensionTrigger.Instance>
public ChangeDimensionTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
deserializeInstance
in interface ICriterionTrigger<ChangeDimensionTrigger.Instance>
public void trigger(EntityPlayerMP player, DimensionType from, DimensionType to)