Interface Merchant

    • Method Detail

      • customer

        Optional<Humanoid> customer()
        Gets the currently trading customer with this merchant.
        Returns:
        The currently trading customer if available
      • setCustomer

        void setCustomer​(@Nullable Humanoid humanoid)
        Sets the currently trading customer with this merchant.

        If the humanoid is available, a new trading window may open with this merchant.

        Parameters:
        humanoid - The humanoid to trade with