Class ModdedPreprocessor<C>
java.lang.Object
org.incendo.cloud.minecraft.modded.internal.ModdedPreprocessor<C>
- All Implemented Interfaces:
Consumer<CommandPreprocessingContext<C>>, Function<CommandPreprocessingContext<C>, State>, CommandPreprocessor<C>, ConsumerService<CommandPreprocessingContext<C>>, Service<CommandPreprocessingContext<C>, State>, SideEffectService<CommandPreprocessingContext<C>>
@API(status=INTERNAL)
public final class ModdedPreprocessor<C>
extends Object
implements CommandPreprocessor<C>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConsumerService
ConsumerService.PipeBurst -
Constructor Summary
ConstructorsConstructorDescriptionModdedPreprocessor(SenderMapper<? extends net.minecraft.commands.SharedSuggestionProvider, C> mapper) Creates a new processor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(@NonNull CommandPreprocessingContext<C> context) Accept the context.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConsumerService
handle
-
Constructor Details
-
ModdedPreprocessor
public ModdedPreprocessor(SenderMapper<? extends net.minecraft.commands.SharedSuggestionProvider, C> mapper) Creates a new processor.- Parameters:
mapper- sender mapper
-
-
Method Details
-
accept
Description copied from interface:org.incendo.cloud.services.type.ConsumerServiceAccept the context. CallConsumerService.interrupt()to interrupt the entire pipeline and immediately returnState.ACCEPTEDto the sink
-