Interface Trigger<C extends FilteredTriggerConfiguration>
- Type Parameters:
- C- The configuration type
- All Superinterfaces:
- DefaultedRegistryValue,- Keyed,- ResourceKeyed
@CatalogedBy(Triggers.class)
public interface Trigger<C extends FilteredTriggerConfiguration>
extends DefaultedRegistryValue, ResourceKeyed
Represents a source that can trigger a 
AdvancementCriterion.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTrigger.Builder<C extends FilteredTriggerConfiguration>A builder to createTriggers.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Trigger.Builder<?>builder()Creates a newTrigger.Builderwhich can be used to create aTrigger.Gets the type of the usedFilteredTriggerConfiguration.voidtrigger()voidtrigger(Iterable<ServerPlayer> players) voidtrigger(ServerPlayer player) Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValueasDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.ResourceKeyedkey
- 
Method Details- 
builderCreates a newTrigger.Builderwhich can be used to create aTrigger.- Returns:
- The builder
 
- 
configurationTypeType configurationType()Gets the type of the usedFilteredTriggerConfiguration.This type represents the Ctype parameter of this instance.- Returns:
- The configuration type
 
- 
triggervoid trigger()
- 
trigger- Parameters:
- players- The players to trigger for
 
- 
trigger- Parameters:
- player- The player to trigger for
 
 
-