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
ContextKey
s.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPlaceholderCollectEvent
(net.minecraft.resources.ResourceLocation key, Class<A> type, List<ContextPlaceholder<A>> placeholders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlaceholder
(ContextPlaceholder<A> placeholder) Adds a placeholder to the list of placeholders.final void
addPlaceholders
(ContextPlaceholder<A>... placeholders) Adds a collection of placeholders to the list of placeholders.void
addPlaceholders
(Collection<ContextPlaceholder<A>> placeholders) Adds a collection of placeholders to the list of placeholders.net.minecraft.resources.ResourceLocation
getKey()
getType()
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-
getPlaceholders
-
addPlaceholder
Adds a placeholder to the list of placeholders.- Parameters:
placeholder
- The placeholder to add
-
addPlaceholders
Adds a collection of placeholders to the list of placeholders.- Parameters:
placeholders
- The placeholders to add
-
addPlaceholders
Adds a collection of placeholders to the list of placeholders.- Parameters:
placeholders
- The placeholders to add
-