Class ContextImpl

  • All Implemented Interfaces:
    Context

    @Internal
    public final class ContextImpl
    extends Object
    implements Context
    Context implementation.
    • Constructor Detail

      • ContextImpl

        @Internal
        public ContextImpl​(@NotNull
                           @NotNull ChatUser sender,
                           @NotNull
                           @NotNull Chameleon chameleon,
                           @NotNull
                           @NotNull String[] args)
        Context implementation constructor.
        Parameters:
        sender - Command sender.
        chameleon - Chameleon implementation.
        args - Command arguments.
    • Method Detail

      • getSender

        @NotNull
        public @NotNull ChatUser getSender()
        Get command sender.
        Specified by:
        getSender in interface Context
        Returns:
        command sender.
      • getChameleon

        @NotNull
        public @NotNull Chameleon getChameleon()
        Get Chameleon implementation.
        Specified by:
        getChameleon in interface Context
        Returns:
        Chameleon implementation.
      • getArgs

        @NotNull
        public @NotNull String[] getArgs()
        Get command arguments.
        Specified by:
        getArgs in interface Context
        Returns:
        command arguments.