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