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.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Constructor SummaryConstructorsConstructorDescriptionPlaceholderCollectEvent(net.minecraft.resources.ResourceLocation key, Class<A> type, List<ContextPlaceholder<A>> placeholders) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPlaceholder(ContextPlaceholder<A> placeholder) Adds a placeholder to the list of placeholders.final voidaddPlaceholders(ContextPlaceholder<A>... placeholders) Adds a collection of placeholders to the list of placeholders.voidaddPlaceholders(Collection<ContextPlaceholder<A>> placeholders) Adds a collection of placeholders to the list of placeholders.net.minecraft.resources.ResourceLocationgetKey()getType()Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Constructor Details- 
PlaceholderCollectEventpublic PlaceholderCollectEvent(net.minecraft.resources.ResourceLocation key, Class<A> type, List<ContextPlaceholder<A>> placeholders) 
 
- 
- 
Method Details- 
getKeypublic net.minecraft.resources.ResourceLocation getKey()
- 
getType
- 
getPlaceholders
- 
addPlaceholderAdds a placeholder to the list of placeholders.- Parameters:
- placeholder- The placeholder to add
 
- 
addPlaceholdersAdds a collection of placeholders to the list of placeholders.- Parameters:
- placeholders- The placeholders to add
 
- 
addPlaceholdersAdds a collection of placeholders to the list of placeholders.- Parameters:
- placeholders- The placeholders to add
 
 
-