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