Class PlaceholderCollectEvent<A>

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.npc.interaction.context.event.PlaceholderCollectEvent<A>
Type Parameters:
A - The type of the object the placeholders are being collected for

public class PlaceholderCollectEvent<A> extends net.minecraftforge.eventbus.api.Event
Event fired when the mod is starting to collect placeholders for different ContextKeys.
  • Constructor Details

    • PlaceholderCollectEvent

      public PlaceholderCollectEvent(net.minecraft.resources.ResourceLocation key, Class<A> type, List<ContextPlaceholder<A>> placeholders)
  • Method Details

    • getKey

      public net.minecraft.resources.ResourceLocation getKey()
    • getType

      public Class<A> getType()
    • getPlaceholders

      public List<ContextPlaceholder<A>> getPlaceholders()
    • addPlaceholder

      public void addPlaceholder(ContextPlaceholder<A> placeholder)
      Adds a placeholder to the list of placeholders.
      Parameters:
      placeholder - The placeholder to add
    • addPlaceholders

      @SafeVarargs public final void addPlaceholders(ContextPlaceholder<A>... placeholders)
      Adds a collection of placeholders to the list of placeholders.
      Parameters:
      placeholders - The placeholders to add
    • addPlaceholders

      public void addPlaceholders(Collection<ContextPlaceholder<A>> placeholders)
      Adds a collection of placeholders to the list of placeholders.
      Parameters:
      placeholders - The placeholders to add